test1 / Dockerfile
msh3907's picture
Use Python 3.12 base image
390b1b2
Raw
History Blame Contribute Delete
312 Bytes
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app
ENV PORT=7860
EXPOSE 7860
CMD ["bash", "-lc", "python manage.py migrate --noinput && gunicorn config.wsgi:application --bind 0.0.0.0:7860 --workers 1 --timeout 120"]