Skip to content

Commit 26ca2aa

Browse files
committed
fix build
1 parent b0ebf88 commit 26ca2aa

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@ WORKDIR /code
77

88
# Use --mount=type=cache to cache pip downloads between builds
99
COPY requirements.txt /code/requirements.txt
10+
COPY requirements.build.txt /code/requirements.build.txt
1011
RUN --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
1517
COPY . /code
1618

1719
# Install dependencies from wheels cache (offline installation)
1820
RUN --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
2225
RUN --mount=type=cache,target=/root/.cache/pip,id=pip-cache \

requirements.build.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pyinstaller==6.10.0

0 commit comments

Comments
 (0)