All checks were successful
cloudmon GitOps Deploy / build-and-deploy (push) Successful in 21s
18 lines
423 B
Docker
18 lines
423 B
Docker
FROM python:3.10-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt /app/
|
|
RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . /app/
|
|
|
|
# KORRIGIERT: Stellt sicher, dass die JS-Assets für Gunicorn lesbar sind
|
|
RUN chmod -R 755 /app/monitor/static/
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["gunicorn", "core.wsgi:application", "--bind", "0.0.0.0:8000"]
|