Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -14,13 +14,13 @@ RUN apt-get update && \
|
|
| 14 |
# Add a directory to store your secrets (if you want to store this securely, you should use Docker secrets or a secure environment variable system)
|
| 15 |
# Alternatively, this secret can be passed during build time or as a runtime environment variable
|
| 16 |
|
| 17 |
-
ENV ZP_PATH=$(cat /run/secrets/zp_path)
|
| 18 |
|
| 19 |
# Print the value of ZP_PATH to verify it's set
|
| 20 |
-
RUN echo "The ZP_PATH is: $
|
| 21 |
|
| 22 |
# Download and extract the zip file
|
| 23 |
-
RUN if [ -n
|
| 24 |
|
| 25 |
# List files in the root and tmp directories to ensure the download happened
|
| 26 |
RUN ls
|
|
|
|
| 14 |
# Add a directory to store your secrets (if you want to store this securely, you should use Docker secrets or a secure environment variable system)
|
| 15 |
# Alternatively, this secret can be passed during build time or as a runtime environment variable
|
| 16 |
|
| 17 |
+
# ENV ZP_PATH=$(cat /run/secrets/zp_path)
|
| 18 |
|
| 19 |
# Print the value of ZP_PATH to verify it's set
|
| 20 |
+
RUN echo "The ZP_PATH is: $(cat /run/secrets/zp_path)"
|
| 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
|
| 24 |
|
| 25 |
# List files in the root and tmp directories to ensure the download happened
|
| 26 |
RUN ls
|