project3 / Dockerfile
Minh123454's picture
Upload 36 files
3090f97 verified
Raw
History Blame Contribute Delete
312 Bytes
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY manage.py .
COPY student_api/ student_api/
COPY students/ students/
EXPOSE 7860
CMD python manage.py migrate --noinput && gunicorn student_api.wsgi:application --bind 0.0.0.0:7860 --workers 2