Update Dockerfile
Browse files- Dockerfile +11 -4
Dockerfile
CHANGED
|
@@ -8,7 +8,7 @@ RUN apt-get update && \
|
|
| 8 |
unzip \
|
| 9 |
git
|
| 10 |
|
| 11 |
-
# Set up the Hugging Face Transformers library
|
| 12 |
# RUN pip3 install transformers
|
| 13 |
|
| 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)
|
|
@@ -16,17 +16,24 @@ RUN apt-get update && \
|
|
| 16 |
ARG zp_path
|
| 17 |
ENV ZP_PATH=${zp_path}
|
| 18 |
|
|
|
|
|
|
|
|
|
|
| 19 |
# Download and extract the zip file
|
| 20 |
RUN if [ -n "${ZP_PATH}" ]; then wget -O /tmp/model.zip "${ZP_PATH}"; fi
|
|
|
|
|
|
|
| 21 |
RUN ls
|
| 22 |
RUN ls /tmp/
|
| 23 |
-
|
| 24 |
-
|
|
|
|
| 25 |
|
| 26 |
# Optional: Set the working directory to where the model is extracted
|
| 27 |
WORKDIR /tmp/model
|
| 28 |
|
|
|
|
| 29 |
RUN ls
|
| 30 |
-
CMD ["v2ray"]
|
| 31 |
|
|
|
|
| 32 |
CMD ["bash"]
|
|
|
|
| 8 |
unzip \
|
| 9 |
git
|
| 10 |
|
| 11 |
+
# Set up the Hugging Face Transformers library (optional)
|
| 12 |
# RUN pip3 install transformers
|
| 13 |
|
| 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)
|
|
|
|
| 16 |
ARG zp_path
|
| 17 |
ENV ZP_PATH=${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
|
| 27 |
RUN ls /tmp/
|
| 28 |
+
|
| 29 |
+
# Unzip the downloaded file
|
| 30 |
+
RUN unzip /tmp/model.zip -d /tmp/model && rm /tmp/model.zip
|
| 31 |
|
| 32 |
# Optional: Set the working directory to where the model is extracted
|
| 33 |
WORKDIR /tmp/model
|
| 34 |
|
| 35 |
+
# List the contents of the model directory
|
| 36 |
RUN ls
|
|
|
|
| 37 |
|
| 38 |
+
# Set default command (you can adjust this as needed)
|
| 39 |
CMD ["bash"]
|