Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -8,9 +8,12 @@ ENV PATH="/home/user/.local/bin:$PATH"
|
|
8 |
# Set working directory
|
9 |
WORKDIR /app
|
10 |
|
11 |
-
# Upgrade pip and install requirements
|
12 |
COPY --chown=user backend/requirements.txt ./requirements.txt
|
13 |
-
RUN pip install --upgrade pip &&
|
|
|
|
|
|
|
14 |
|
15 |
# Copy the full project code (backend and data)
|
16 |
COPY --chown=user . .
|
|
|
8 |
# Set working directory
|
9 |
WORKDIR /app
|
10 |
|
11 |
+
# Upgrade pip and install requirements cleanly
|
12 |
COPY --chown=user backend/requirements.txt ./requirements.txt
|
13 |
+
RUN pip install --upgrade pip && \
|
14 |
+
pip uninstall -y transformers peft || true && \
|
15 |
+
pip install --no-cache-dir -r requirements.txt && \
|
16 |
+
pip install --no-cache-dir "transformers>=4.30.0" "peft>=0.5.0"
|
17 |
|
18 |
# Copy the full project code (backend and data)
|
19 |
COPY --chown=user . .
|