Skip to content

Commit 1445d9d

Browse files
committed
💚 Fix Dockerfile 2
1 parent a17c45a commit 1445d9d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@ COPY src pyproject.toml pdm.lock ./
1616

1717
RUN pdm export --prod -o requirements.txt --no-hashes
1818

19-
RUN awk '/^py-cord/ {skip=2; next} skip {skip--; next} 1' requirements.txt > requirements.txt.tmp && mv requirements.txt.tmp requirements.txt
20-
2119
FROM python:${PYTHON_VERSION}-slim-bookworm AS app
2220

2321
ENV PYTHONDONTWRITEBYTECODE=1
2422
ENV PYTHONUNBUFFERED=1
2523

2624
WORKDIR /app
2725

26+
RUN apt-get update && apt-get install -y --no-install-recommends \
27+
git \
28+
&& rm -rf /var/lib/apt/lists/* && apt-get autoclean
29+
2830
RUN adduser -u 6392 --disabled-password --gecos "" appuser && chown -R appuser /app
2931

3032
COPY --from=python-base --chown=appuser /app/requirements.txt ./

0 commit comments

Comments
 (0)