Skip to content

Commit 05fcbb1

Browse files
committed
🔧 Update Dockerfile and pr_autofixes.yaml to remove --no-hashes from pdm export
1 parent d58e651 commit 05fcbb1

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

.github/workflows/pr_autofixes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161

6262
- name: Export requirements
6363
if: steps.check-target.outputs.should_run == 'true'
64-
run: pdm run export --no-hashes
64+
run: pdm run export
6565

6666
- name: Add license headers
6767
if: steps.check-target.outputs.should_run == 'true'

Dockerfile

Lines changed: 2 additions & 9 deletions
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-
RUN pdm export --prod -o requirements.txt --no-hashes
17+
RUN pdm export --prod -o requirements.txt
1818

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

@@ -23,18 +23,11 @@ ENV PYTHONUNBUFFERED=1
2323

2424
WORKDIR /app
2525

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-
3026
RUN adduser -u 6392 --disabled-password --gecos "" appuser && chown -R appuser /app
3127

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

34-
RUN pip install $(grep '^pycord-rest-bot==' requirements.txt | tr -d '\\') \
35-
&& sed -i '/pycord-rest-bot/d' requirements.txt \
36-
&& pip uninstall py-cord -y \
37-
&& pip install -r requirements.txt
30+
RUN pip install -r requirements.txt
3831

3932
COPY --chown=appuser src/ ./src
4033
COPY --chown=appuser LICENSE ./

0 commit comments

Comments
 (0)