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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 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
 
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