We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a17c45a commit 1445d9dCopy full SHA for 1445d9d
Dockerfile
@@ -16,15 +16,17 @@ COPY src pyproject.toml pdm.lock ./
16
17
RUN pdm export --prod -o requirements.txt --no-hashes
18
19
-RUN awk '/^py-cord/ {skip=2; next} skip {skip--; next} 1' requirements.txt > requirements.txt.tmp && mv requirements.txt.tmp requirements.txt
20
-
21
FROM python:${PYTHON_VERSION}-slim-bookworm AS app
22
23
ENV PYTHONDONTWRITEBYTECODE=1
24
ENV PYTHONUNBUFFERED=1
25
26
WORKDIR /app
27
+RUN apt-get update && apt-get install -y --no-install-recommends \
+ git \
28
+ && rm -rf /var/lib/apt/lists/* && apt-get autoclean
29
+
30
RUN adduser -u 6392 --disabled-password --gecos "" appuser && chown -R appuser /app
31
32
COPY --from=python-base --chown=appuser /app/requirements.txt ./
0 commit comments