Reaperxxxx commited on
Commit
99ed799
·
verified ·
1 Parent(s): d571fc7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -9
Dockerfile CHANGED
@@ -1,23 +1,25 @@
1
- # Use official Python image as base
2
  FROM python:3.9
3
 
4
- # Set the working directory inside the container
5
  WORKDIR /app
6
 
7
- # Copy requirements if you have one (optional)
8
- # COPY requirements.txt .
9
- # RUN pip install -r requirements.txt
10
 
11
- # Install dependencies
12
  RUN pip install flask pillow
13
 
14
- # Copy the application files into the container
15
  COPY . .
16
 
17
- # Create the output directory and set permissions
 
 
 
18
  RUN mkdir -p /app/output && chmod -R 777 /app/output
19
 
20
- # Expose port 5000 for Flask
21
  EXPOSE 7860
22
 
23
  # Start the Flask app
 
1
+ # Use official Python image
2
  FROM python:3.9
3
 
4
+ # Set working directory
5
  WORKDIR /app
6
 
7
+ # Install system dependencies for fonts
8
+ RUN apt-get update && apt-get install -y fonts-dejavu-core
 
9
 
10
+ # Install required Python packages
11
  RUN pip install flask pillow
12
 
13
+ # Copy application files
14
  COPY . .
15
 
16
+ # Ensure the Gagalin font is included
17
+ COPY Gagalin.otf /app/Gagalin.otf
18
+
19
+ # Set permissions for output directory
20
  RUN mkdir -p /app/output && chmod -R 777 /app/output
21
 
22
+ # Expose port 7860
23
  EXPOSE 7860
24
 
25
  # Start the Flask app