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 5660e4b commit a279037Copy full SHA for a279037
Dockerfile
@@ -14,7 +14,7 @@ ENV PDM_CHECK_UPDATE=false
14
WORKDIR /app
15
COPY src pyproject.toml pdm.lock ./
16
17
- && pip install -r requirements.txt
+RUN pdm export --prod -o requirements.txt --no-hashes
18
19
FROM python:${PYTHON_VERSION}-slim-bookworm AS app
20
@@ -29,6 +29,12 @@ COPY --from=python-base --chown=appuser /app/requirements.txt ./
29
COPY src/ ./src
30
COPY LICENSE ./
31
32
+RUN apt-get update \
33
+ && apt-get install -y --no-install-recommends \
34
+ git \
35
+ && rm -rf /var/lib/apt/lists/* \
36
+ && apt-get clean
37
+
38
RUN pip install $(grep '^pycord-rest-bot==' requirements.txt | tr -d '\\') \
39
&& sed -i '/pycord-rest-bot/d' requirements.txt \
40
&& pip install -r requirements.txt
0 commit comments