Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -17,7 +17,9 @@ RUN apt-get update && \
|
|
| 17 |
# ENV ZP_PATH=$(cat /run/secrets/zp_path)
|
| 18 |
|
| 19 |
# Print the value of ZP_PATH to verify it's set
|
| 20 |
-
RUN
|
|
|
|
|
|
|
| 21 |
|
| 22 |
# Download and extract the zip file
|
| 23 |
RUN if [ -n $(cat /run/secrets/zp_path) ]; then wget -O /tmp/model.zip $(cat /run/secrets/zp_path); fi
|
|
|
|
| 17 |
# ENV ZP_PATH=$(cat /run/secrets/zp_path)
|
| 18 |
|
| 19 |
# Print the value of ZP_PATH to verify it's set
|
| 20 |
+
RUN --mount=type=secret,id=zp_path,mode=0444,required=true \
|
| 21 |
+
echo "The ZP_PATH is: $(cat /run/secrets/zp_path)"
|
| 22 |
+
|
| 23 |
|
| 24 |
# Download and extract the zip file
|
| 25 |
RUN if [ -n $(cat /run/secrets/zp_path) ]; then wget -O /tmp/model.zip $(cat /run/secrets/zp_path); fi
|