ytsm/Dockerfile
2018-10-30 14:15:49 +08:00

18 lines
369 B
Docker

FROM python:3
WORKDIR /usr/src/app
RUN apt-get update
RUN apt-get install ffmpeg -y
COPY ./app/requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY ./app/ .
COPY ./config/ ./config/
#RUN python manage.py migrate
CMD ["python", "./manage.py", "runserver", "8000", "--noreload"]
#CMD ["gunicorn", "YtManager.wsgi", "--bind", "0.0.0.0:8000"]