Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -10
Dockerfile
CHANGED
|
@@ -10,11 +10,8 @@ RUN pip install --upgrade pip
|
|
| 10 |
# Install dependencies
|
| 11 |
RUN pip install -r requirements.txt
|
| 12 |
|
| 13 |
-
# Install
|
| 14 |
-
RUN
|
| 15 |
-
&& curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | tee /etc/apt/trusted.gpg.d/ngrok.asc \
|
| 16 |
-
&& echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | tee /etc/apt/sources.list.d/ngrok.list \
|
| 17 |
-
&& apt-get update && apt-get install ngrok
|
| 18 |
|
| 19 |
# Copy application files
|
| 20 |
COPY app/. /app/.
|
|
@@ -22,8 +19,5 @@ COPY app/. /app/.
|
|
| 22 |
# Expose port for application
|
| 23 |
EXPOSE 8001
|
| 24 |
|
| 25 |
-
#
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
# Start ngrok and the Flask application
|
| 29 |
-
CMD ngrok http 8001 --log=stdout & python /app/main.py
|
|
|
|
| 10 |
# Install dependencies
|
| 11 |
RUN pip install -r requirements.txt
|
| 12 |
|
| 13 |
+
# Install localtunnel
|
| 14 |
+
RUN npm install -g localtunnel
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
# Copy application files
|
| 17 |
COPY app/. /app/.
|
|
|
|
| 19 |
# Expose port for application
|
| 20 |
EXPOSE 8001
|
| 21 |
|
| 22 |
+
# Start localtunnel and the Flask application
|
| 23 |
+
CMD lt --port 8001 --subdomain mysubdomain & python /app/main.py
|
|
|
|
|
|
|
|
|