Spaces:
Build error
Build error
James McCool
commited on
Commit
·
7fdc568
1
Parent(s):
b4c7834
Reorder Dockerfile instructions to ensure requirements are installed after copying the requirements file. This change improves the build process by maintaining a clear sequence for dependency installation.
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -9,11 +9,11 @@ RUN apt-get update && apt-get install -y \
|
|
| 9 |
git \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
-
RUN pip3 install -r requirements.txt
|
| 13 |
-
|
| 14 |
COPY requirements.txt ./
|
| 15 |
COPY src/ ./src/
|
| 16 |
|
|
|
|
|
|
|
| 17 |
# Expose the secret SECRET_EXAMPLE at buildtime and use its value as git remote URL
|
| 18 |
RUN --mount=type=secret,id=mongo_uri,mode=0444,required=true \
|
| 19 |
git init && \
|
|
|
|
| 9 |
git \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
|
|
|
|
|
|
| 12 |
COPY requirements.txt ./
|
| 13 |
COPY src/ ./src/
|
| 14 |
|
| 15 |
+
RUN pip3 install -r requirements.txt
|
| 16 |
+
|
| 17 |
# Expose the secret SECRET_EXAMPLE at buildtime and use its value as git remote URL
|
| 18 |
RUN --mount=type=secret,id=mongo_uri,mode=0444,required=true \
|
| 19 |
git init && \
|