Compare commits
1 Commits
ad9d55e986
...
feature/im
| Author | SHA1 | Date | |
|---|---|---|---|
|
27e78d6f39
|
13
Dockerfile
13
Dockerfile
@@ -1,13 +1,17 @@
|
||||
FROM python:3.15-rc-trixie AS baustelle
|
||||
FROM python:3.15.0a5-trixie AS baustelle
|
||||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
RUN pip install --upgrade pip
|
||||
COPY requirements.txt /app/
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN pip install --no-cache-dir -r requirements.txt && \
|
||||
apt-get update && \
|
||||
apt-get install -y curl && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
FROM python:3.15-rc-slim-trixie
|
||||
FROM python:3.15.0a5-slim-trixie
|
||||
RUN useradd -m -r -u 99 appuser && \
|
||||
mkdir /app && \
|
||||
chown -R appuser /app
|
||||
@@ -35,5 +39,8 @@ RUN rm -rvf /app/Dockerfile* \
|
||||
/app/scripts \
|
||||
/app/test_*.py && \
|
||||
python3 /app/manage.py collectstatic --noinput
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://localhost:8000/ || exit 1
|
||||
|
||||
CMD ["gunicorn","--bind","0.0.0.0:8000","--workers","3","VorgabenUI.wsgi:application"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user