File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,16 +7,19 @@ WORKDIR /code
77
88# Use --mount=type=cache to cache pip downloads between builds
99COPY requirements.txt /code/requirements.txt
10+ COPY requirements.build.txt /code/requirements.build.txt
1011RUN --mount=type=cache,target=/root/.cache/pip,id=pip-cache \
1112 python -m pip install --upgrade pip wheel \
12- && pip wheel -r requirements.txt -w /wheels
13+ && pip wheel -r requirements.txt -w /wheels \
14+ && pip wheel -r requirements.build.txt -w /wheels
1315
1416# Coyp source code
1517COPY . /code
1618
1719# Install dependencies from wheels cache (offline installation)
1820RUN --mount=type=cache,target=/root/.cache/pip,id=pip-cache \
19- pip install --no-index --find-links=/wheels -r requirements.txt
21+ pip install --no-index --find-links=/wheels -r requirements.txt \
22+ && pip install --no-index --find-links=/wheels -r requirements.build.txt
2023
2124# Run PyInstaller to create a single executable
2225RUN --mount=type=cache,target=/root/.cache/pip,id=pip-cache \
Original file line number Diff line number Diff line change 1+ pyinstaller==6.10.0
You can’t perform that action at this time.
0 commit comments