| # Use an official Python runtime as a parent image | |
| FROM python:3.9-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Install system dependencies (if any) | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Clone the Git repository | |
| RUN git clone https://github.com/wasi-master/13ft.git /app | |
| # Change to the directory containing the application code | |
| WORKDIR /app | |
| # Install dependencies from requirements.txt | |
| RUN python -m pip install --upgrade pip | |
| RUN python -m pip install -r requirements.txt | |
| # Expose the port the app runs on | |
| EXPOSE 9982 | |
| # Set environment variable for Flask | |
| ENV FLASK_APP=app/portable.py | |
| # Run the application on 127.0.0.1 and port 9982 | |
| CMD ["flask", "run", "--host=0.0.0.0", "--port=9982"] | |