Initial commit
This commit is contained in:
34
Dockerfile
Normal file
34
Dockerfile
Normal file
@@ -0,0 +1,34 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ffmpeg \
|
||||
git \
|
||||
curl \
|
||||
unzip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Bento4 (mp4decrypt)
|
||||
RUN curl -L -o /tmp/bento4.zip https://www.bok.net/Bento4/binaries/Bento4-SDK-1-6-0-641.x86_64-unknown-linux.zip \
|
||||
&& unzip /tmp/bento4.zip -d /tmp/bento4 \
|
||||
&& cp /tmp/bento4/Bento4-SDK-1-6-0-641.x86_64-unknown-linux/bin/mp4decrypt /usr/local/bin/ \
|
||||
&& chmod +x /usr/local/bin/mp4decrypt \
|
||||
&& rm -rf /tmp/bento4 /tmp/bento4.zip
|
||||
|
||||
# Install votify-fix
|
||||
RUN pip install --no-cache-dir websocket-client git+https://github.com/GladistonXD/votify-fix.git
|
||||
|
||||
# Install web app dependencies
|
||||
COPY requirements.txt /app/requirements.txt
|
||||
RUN pip install --no-cache-dir -r /app/requirements.txt
|
||||
|
||||
COPY app.py /app/app.py
|
||||
COPY templates /app/templates
|
||||
COPY static /app/static
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN mkdir -p /downloads /config /tmp/votify
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "1", "--threads", "4", "app:app"]
|
||||
Reference in New Issue
Block a user