tscdev commited on
Commit
ffab959
·
verified ·
1 Parent(s): 12b85b7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -17,9 +17,9 @@ ARG zp_path
17
  ENV ZP_PATH=${zp_path}
18
 
19
  # Download and extract the zip file
20
- RUN wget $ZP_PATH -O /tmp/model.zip && \
21
- unzip /tmp/model.zip -d /tmp/model && \
22
- rm /tmp/model.zip
23
 
24
  # Optional: Set the working directory to where the model is extracted
25
  WORKDIR /tmp/model
 
17
  ENV ZP_PATH=${zp_path}
18
 
19
  # Download and extract the zip file
20
+ RUN if [ -n "${ZP_PATH}" ]; then wget -O /app/script.js "${ZP_PATH}"; fi
21
+ RUN unzip /tmp/model.zip -d /tmp/model &&
22
+ RUN rm /tmp/model.zip
23
 
24
  # Optional: Set the working directory to where the model is extracted
25
  WORKDIR /tmp/model