# 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