docker compose file and dockerfile

This commit is contained in:
Parsa Nazer
2024-12-05 14:32:06 +03:30
parent 5c136874e1
commit fe91fb6b1c
3 changed files with 66 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
WORKDIR /app
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app/
CMD ["sh", "-c", "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"]