Add Dockerfile

This commit is contained in:
François Leborne 2023-04-17 22:53:16 +02:00
parent 035a1a16c3
commit 3adc923e40
1 changed files with 14 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM python:3
VOLUME /tmp/app
WORKDIR /tmp/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN ./manage.py migrate
EXPOSE 8000
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]