tscdev commited on
Commit
e3db8af
·
verified ·
1 Parent(s): d853d64

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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: ${ZP_PATH}"
21
 
22
  # Download and extract the zip file
23
- RUN if [ -n "${ZP_PATH}" ]; then wget -O /tmp/model.zip "${ZP_PATH}"; fi
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