Spaces:
Runtime error
Runtime error
File size: 564 Bytes
bcce3af 74c6563 74d1b53 bcce3af 74d1b53 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# Pull python base image
FROM python:3.10
# Add requirements.txt to the working directory
ADD requirements.txt requirements.txt
# Update pip
RUN pip install --upgrade pip
# Install dependencies
RUN pip install -r requirements.txt
# Install nodejs and npm
RUN apt-get update && apt-get install -y nodejs npm
# Install localtunnel
RUN npm install -g localtunnel
# Copy application files
COPY app/. /app/.
# Expose port for application
EXPOSE 8001
# Start localtunnel and the Flask application
CMD lt --port 8001 --subdomain mysubdomain & python /app/main.py
|