Dockerfile 427 B

12345678910111213141516171819
  1. FROM python:3.12-slim
  2. ENV PYTHONDONTWRITEBYTECODE=1 \
  3. PYTHONUNBUFFERED=1
  4. WORKDIR /app
  5. COPY requirements.txt .
  6. RUN pip install --no-cache-dir -r requirements.txt
  7. COPY manage.py .
  8. COPY regbrowser/ regbrowser/
  9. COPY explorer/ explorer/
  10. RUN python manage.py collectstatic --noinput
  11. EXPOSE 8000
  12. CMD ["sh", "-c", "python manage.py migrate --noinput && gunicorn regbrowser.wsgi:application --bind 0.0.0.0:8000 --workers 2"]