File size: 611 Bytes
a07f417
 
66f8fc1
9c0cec7
 
66f8fc1
a07f417
9c0cec7
66f8fc1
a07f417
9c0cec7
66f8fc1
a07f417
 
 
 
 
 
 
 
 
 
 
 
9c0cec7
 
66f8fc1
9c0cec7
 
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
# Stage 1: Use the official Python image to install dependencies
FROM python:3.10-slim as builder

# Set the working directory
WORKDIR /app

# Copy the requirements file
COPY requirements.txt .

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Stage 2: Use the Inno Setup Docker image
FROM amake/innosetup:latest

# Set the working directory
WORKDIR /app

# Copy the Flask app files from the builder stage
COPY --from=builder /app /app

# Copy the main.py file
COPY main.py .

# Expose the necessary port
EXPOSE 7860

# Command to run your Flask app
CMD ["python", "main.py"]