Update Dockerfile
Browse files- 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
|
| 21 |
-
|
| 22 |
-
|
| 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
|