All checks were successful
Build and Push Docker Image / build (push) Successful in 7s
16 lines
365 B
Docker
16 lines
365 B
Docker
FROM python:3.11-slim
|
|
|
|
LABEL org.opencontainers.image.source="https://gitea.chatgqt.top/gqt/test-ci"
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
RUN python manage.py collectstatic --noinput 2>/dev/null || true
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["gunicorn", "app.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "2"]
|