Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +9 -4
Dockerfile
CHANGED
@@ -15,11 +15,16 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
15 |
# Copy the rest of the application code to the working directory
|
16 |
COPY . .
|
17 |
|
18 |
-
# Install
|
19 |
-
RUN
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
21 |
mv ngrok /usr/local/bin/ngrok && \
|
22 |
-
rm ngrok
|
23 |
|
24 |
# Command to run the application
|
25 |
CMD ["sh", "-c", "python app/app.py & ngrok http 8000"]
|
|
|
15 |
# Copy the rest of the application code to the working directory
|
16 |
COPY . .
|
17 |
|
18 |
+
# Install curl (if not already available)
|
19 |
+
RUN apt-get update && \
|
20 |
+
apt-get install -y curl && \
|
21 |
+
apt-get clean
|
22 |
+
|
23 |
+
# Install Ngrok using curl
|
24 |
+
RUN curl -o ngrok.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip && \
|
25 |
+
unzip ngrok.zip && \
|
26 |
mv ngrok /usr/local/bin/ngrok && \
|
27 |
+
rm ngrok.zip
|
28 |
|
29 |
# Command to run the application
|
30 |
CMD ["sh", "-c", "python app/app.py & ngrok http 8000"]
|