Added docker support

This commit is contained in:
Jett Jackson
2018-10-30 14:15:49 +08:00
parent 97e7e792f8
commit 84b0c2e861
108 changed files with 240 additions and 16 deletions

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
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"]