22 lines
369 B
Docker
22 lines
369 B
Docker
# Nexus - Django API Dockerfile
|
|
|
|
FROM python:3.12-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
COPY manage.py .
|
|
COPY api/ .
|
|
COPY nexus/ .
|
|
COPY static/ .
|
|
COPY templates/ .
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
CMD ["gunicorn", "nexus.asgi:application", "-k", "uvicorn.workers.UvicornWorker"]
|