Downloadsite / Dockerfile
48leewsypc's picture
Update Dockerfile
563ba1c verified
raw
history blame contribute delete
387 Bytes
FROM python:3.9-slim
WORKDIR /code
RUN apt-get update && apt-get install -y ffmpeg
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN useradd -m -u 1000 user
RUN mkdir /code/downloads && chown -R user:user /code/downloads
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
COPY --chown=user . .
EXPOSE 7860
CMD ["python", "app.py"]