File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 61
61
62
62
- name : Export requirements
63
63
if : steps.check-target.outputs.should_run == 'true'
64
- run : pdm run export --no-hashes
64
+ run : pdm run export
65
65
66
66
- name : Add license headers
67
67
if : steps.check-target.outputs.should_run == 'true'
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ ENV PDM_CHECK_UPDATE=false
14
14
WORKDIR /app
15
15
COPY src pyproject.toml pdm.lock ./
16
16
17
- RUN pdm export --prod -o requirements.txt --no-hashes
17
+ RUN pdm export --prod -o requirements.txt
18
18
19
19
FROM python:${PYTHON_VERSION}-slim-bookworm AS app
20
20
@@ -23,18 +23,11 @@ ENV PYTHONUNBUFFERED=1
23
23
24
24
WORKDIR /app
25
25
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
-
30
26
RUN adduser -u 6392 --disabled-password --gecos "" appuser && chown -R appuser /app
31
27
32
28
COPY --from=python-base --chown=appuser /app/requirements.txt ./
33
29
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
38
31
39
32
COPY --chown=appuser src/ ./src
40
33
COPY --chown=appuser LICENSE ./
You can’t perform that action at this time.
0 commit comments