File size: 662 Bytes
bd9ffae
 
66f8fc1
9c0cec7
 
66f8fc1
9785135
 
 
bd9ffae
66f8fc1
fabefd0
 
 
a07f417
bd9ffae
 
 
 
 
a07f417
bd9ffae
 
a07f417
bd9ffae
9c0cec7
66f8fc1
bd9ffae
9785135
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 the official Python image
FROM python:3.10-slim

# Set the working directory
WORKDIR /app

# Install dependencies including NSIS
RUN apt-get update && \
    apt-get install -y nsis wget && \
    rm -rf /var/lib/apt/lists/*

# Create necessary directories and set permissions
RUN mkdir uploads compiled && \
    chmod -R 777 uploads compiled

# Copy the requirements file
COPY ./requirements.txt /app/requirements.txt

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

# Copy the Flask app files
COPY . .

# Expose the port the app runs on
EXPOSE 7860

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