django example

Signed-off-by: Felipe Vilella <vilella.luisfelipe@gmail.com>
This commit is contained in:
Felipe Vilella
2020-04-06 16:32:26 -03:00
parent 40c3caa1c8
commit c19add5976
9 changed files with 246 additions and 0 deletions

8
django/app/Dockerfile Normal file
View File

@@ -0,0 +1,8 @@
FROM python:3.7-alpine
EXPOSE 8000
WORKDIR /app
COPY requirements.txt /app
RUN pip3 install -r requirements.txt
COPY . /app
ENTRYPOINT ["python3"]
CMD ["manage.py", "runserver", "0.0.0.0:8000"]