This repository has been archived on 2026-03-13. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
test-ci/Dockerfile
gqt b6dde7cb07
All checks were successful
Build and Push Docker Image / build (push) Successful in 7s
fix: add OCI label to link image to repository
2026-02-08 13:07:01 +08:00

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"]