File size: 769 Bytes
826f16c |
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 28 29 30 |
# 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"]
|