Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
@@ -1,19 +1,21 @@
|
|
1 |
FROM ollama/ollama:latest
|
2 |
|
3 |
-
# Install dependencies
|
4 |
RUN apt-get update && apt-get install -y wget unzip curl
|
5 |
|
6 |
-
# Install Ngrok
|
7 |
RUN wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-stable-linux-amd64.zip
|
8 |
RUN unzip ngrok-stable-linux-amd64.zip
|
9 |
RUN mv ngrok /usr/local/bin/
|
10 |
|
11 |
-
# Set Ngrok auth token
|
12 |
ENV NGROK_AUTH_TOKEN=2fjNALLd8Guj8P4RCXvnvfDJ3Fp_6t8DR3vXx9U8qH69j6moY
|
13 |
-
|
14 |
# Copy start script
|
15 |
COPY start.sh /start.sh
|
16 |
RUN chmod +x /start.sh
|
17 |
|
18 |
-
#
|
|
|
|
|
|
|
19 |
CMD ["/start.sh"]
|
|
|
1 |
FROM ollama/ollama:latest
|
2 |
|
3 |
+
# Install dependencies (if any)
|
4 |
RUN apt-get update && apt-get install -y wget unzip curl
|
5 |
|
6 |
+
# Install Ngrok (example setup)
|
7 |
RUN wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-stable-linux-amd64.zip
|
8 |
RUN unzip ngrok-stable-linux-amd64.zip
|
9 |
RUN mv ngrok /usr/local/bin/
|
10 |
|
11 |
+
# Set Ngrok auth token
|
12 |
ENV NGROK_AUTH_TOKEN=2fjNALLd8Guj8P4RCXvnvfDJ3Fp_6t8DR3vXx9U8qH69j6moY
|
|
|
13 |
# Copy start script
|
14 |
COPY start.sh /start.sh
|
15 |
RUN chmod +x /start.sh
|
16 |
|
17 |
+
# Override ENTRYPOINT to prevent ollama from interpreting the command
|
18 |
+
ENTRYPOINT []
|
19 |
+
|
20 |
+
# Set CMD to run the start script
|
21 |
CMD ["/start.sh"]
|