Skip to content

Commit a279037

Browse files
committed
♻️ Update Dockerfile
1 parent 5660e4b commit a279037

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ENV PDM_CHECK_UPDATE=false
1414
WORKDIR /app
1515
COPY src pyproject.toml pdm.lock ./
1616

17-
&& pip install -r requirements.txt
17+
RUN pdm export --prod -o requirements.txt --no-hashes
1818

1919
FROM python:${PYTHON_VERSION}-slim-bookworm AS app
2020

@@ -29,6 +29,12 @@ COPY --from=python-base --chown=appuser /app/requirements.txt ./
2929
COPY src/ ./src
3030
COPY LICENSE ./
3131

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+
3238
RUN pip install $(grep '^pycord-rest-bot==' requirements.txt | tr -d '\\') \
3339
&& sed -i '/pycord-rest-bot/d' requirements.txt \
3440
&& pip install -r requirements.txt

0 commit comments

Comments
 (0)