All checks were successful
Build and Push Docker Image / build (push) Successful in 25s
19 lines
330 B
Docker
19 lines
330 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
RUN python manage.py collectstatic --noinput
|
|
|
|
ENV HOST=0.0.0.0
|
|
ENV PORT=8000
|
|
ENV LOG_LEVEL=info
|
|
|
|
EXPOSE ${PORT}
|
|
|
|
CMD uvicorn santehray.asgi:application --host ${HOST} --port ${PORT} --log-level ${LOG_LEVEL}
|