Spaces:
Sleeping
Sleeping
# 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"] | |