Spaces:
Paused
Paused
Commit
·
1ea8628
1
Parent(s):
7427260
Auto-commit: Dockerfile updated
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -23,7 +23,8 @@ ENV HOME=/home/user \
|
|
| 23 |
# Set working directory
|
| 24 |
WORKDIR $HOME/app
|
| 25 |
|
| 26 |
-
# Copy requirements
|
|
|
|
| 27 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 28 |
pip install --no-cache-dir --upgrade -r requirements.txt
|
| 29 |
|
|
|
|
| 23 |
# Set working directory
|
| 24 |
WORKDIR $HOME/app
|
| 25 |
|
| 26 |
+
# Copy requirements first for better caching
|
| 27 |
+
COPY --chown=user requirements.txt .
|
| 28 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 29 |
pip install --no-cache-dir --upgrade -r requirements.txt
|
| 30 |
|