We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7940594 commit ea6a354Copy full SHA for ea6a354
1 file changed
Dockerfile
@@ -1,9 +1,10 @@
1
-FROM python:3.7 AS base
+FROM python:3.7-slim-bullseye AS base
2
WORKDIR /app
3
4
# Install and configure poetry
5
ENV POETRY_VERSION=1.1.11
6
ENV POETRY_HOME=/opt/poetry
7
+RUN apt update && apt install -y curl && apt clean
8
RUN curl -sSL https://install.python-poetry.org | python -
9
10
ENV PATH="/opt/poetry/bin:$PATH"
@@ -14,10 +15,12 @@ RUN mkdir src && touch src/__init__.py
14
15
COPY pyproject.toml poetry.lock README.md ./
16
RUN poetry install --no-dev -E server
17
-FROM python:3.7
18
+FROM python:3.7-slim-bullseye
19
+LABEL healthcheck="nc -z 127.0.0.1 80"
20
21
COPY --from=base /app/.venv /app/.venv
22
ENV PATH="/app/.venv/bin:$PATH"
23
+RUN apt update && apt install -y netcat && apt clean
24
EXPOSE 80
25
26
COPY src src
0 commit comments