Skip to content

Commit ca8d88f

Browse files
authored
fix: update package installation method and version specifier
- Update requirements.txt to use ~= version specifier for runpod package - Modify Dockerfile to install packages from requirements.txt
1 parent 44c98b5 commit ca8d88f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# ---------------------------------------------------------------------------- #
32
# Stage 1: Download the models #
43
# ---------------------------------------------------------------------------- #
@@ -44,9 +43,10 @@ RUN --mount=type=cache,target=/root/.cache/pip \
4443

4544
COPY --from=download /model.safetensors /model.safetensors
4645

47-
# Install RunPod SDK
46+
# Copy requirements.txt and install dependencies
47+
COPY requirements.txt .
4848
RUN --mount=type=cache,target=/root/.cache/pip \
49-
pip install --no-cache-dir runpod
49+
pip install --no-cache-dir -r requirements.txt
5050

5151
ADD src .
5252

@@ -55,4 +55,4 @@ RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.sa
5555

5656
# Set permissions and specify the command to run
5757
RUN chmod +x /start.sh
58-
CMD /start.sh
58+
CMD /start.sh

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
runpod==1.7.9
1+
runpod~=1.7.9

0 commit comments

Comments
 (0)