Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -8
Dockerfile
CHANGED
@@ -15,20 +15,19 @@ 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 curl (if not already available)
|
19 |
RUN apt-get update && \
|
20 |
-
apt-get install -y curl && \
|
21 |
apt-get clean
|
22 |
|
23 |
# Download ngrok using curl
|
24 |
-
RUN curl -o ngrok.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
|
25 |
-
|
26 |
-
# Install unzip and unzip ngrok
|
27 |
-
RUN apt-get update && \
|
28 |
-
apt-get install -y unzip && \
|
29 |
unzip ngrok.zip && \
|
30 |
mv ngrok /usr/local/bin/ngrok && \
|
31 |
rm ngrok.zip
|
32 |
|
|
|
|
|
|
|
33 |
# Command to run the application
|
34 |
-
CMD ["sh", "-c", "ngrok
|
|
|
15 |
# Copy the rest of the application code to the working directory
|
16 |
COPY . .
|
17 |
|
18 |
+
# Install curl and unzip (if not already available)
|
19 |
RUN apt-get update && \
|
20 |
+
apt-get install -y curl unzip && \
|
21 |
apt-get clean
|
22 |
|
23 |
# Download 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 |
+
# Set ngrok authentication token
|
30 |
+
RUN echo "authtoken: 2e6JSMo1mBy4br3Zfkh5ZxjNi8k_7t1xRvVGdwSQhf4uUmTZp" > ~/.ngrok2/ngrok.yml
|
31 |
+
|
32 |
# Command to run the application
|
33 |
+
CMD ["sh", "-c", "ngrok http 8000 & python app/app.py"]
|