File size: 527 Bytes
99ed799
c303d1f
 
99ed799
c303d1f
 
99ed799
 
c303d1f
99ed799
c303d1f
 
99ed799
c303d1f
 
99ed799
867e383
99ed799
 
c303d1f
 
99ed799
c303d1f
 
 
 
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
# Use official Python image
FROM python:3.9

# Set working directory
WORKDIR /app

# Install system dependencies for fonts
RUN apt-get update && apt-get install -y fonts-dejavu-core

# Install required Python packages
RUN pip install flask pillow

# Copy application files
COPY . .

# Ensure the Gagalin font is included
COPY gagalin.otf /app/gagalin.otf

# Set permissions for output directory
RUN mkdir -p /app/output && chmod -R 777 /app/output

# Expose port 7860
EXPOSE 7860

# Start the Flask app
CMD ["python", "app.py"]