add docker health status, keep python3.9: deps not updated for 3.10 yet

This commit is contained in:
Maxi Quoß
2021-10-15 00:52:25 +02:00
parent 9484e40815
commit dd2be0946c
4 changed files with 26 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
FROM python:3-slim-bullseye as base
FROM python:3.9-slim-bullseye as base
FROM base as builder
@@ -8,7 +8,7 @@ RUN apt-get update && apt-get -y install build-essential libssl-dev libffi-dev p
mkdir /install
WORKDIR /install
COPY requirements.txt .
RUN python -m pip install --prefix=/install --no-cache-dir --upgrade pip && \
RUN python -m pip install --no-cache-dir --upgrade pip && \
pip install --prefix=/install --no-cache-dir -r requirements.txt && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
@@ -19,7 +19,7 @@ COPY --from=builder /install /usr/local
COPY app /app
WORKDIR /app
RUN apt-get update && \
apt-get -y install iputils-ping nmap && \
apt-get -y install iputils-ping nmap curl && \
rm -rf /var/lib/apt/lists/*
CMD ["./run.sh"]