limenous commited on
Commit
fbdcfe2
·
1 Parent(s): 6e53ffe

Update port to 7860 and add font installation

Browse files
Files changed (2) hide show
  1. Dockerfile +9 -3
  2. requirements.txt +1 -1
Dockerfile CHANGED
@@ -10,12 +10,18 @@ COPY . /app
10
  # Install the dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Set environment variables to avoid potential issues with Flask and Gunicorn
14
  ENV FLASK_APP=app.py
15
  ENV FLASK_RUN_HOST=0.0.0.0
 
 
 
 
 
 
16
 
17
  # Expose the port the app runs on
18
- EXPOSE 5000
19
 
20
  # Define the command to run your app using Gunicorn
21
- CMD ["gunicorn", "--log-level", "debug", "-b", "0.0.0.0:5000", "app:app"]
 
10
  # Install the dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Set environment variables
14
  ENV FLASK_APP=app.py
15
  ENV FLASK_RUN_HOST=0.0.0.0
16
+ ENV PORT=7860
17
+
18
+ # Install system fonts
19
+ RUN apt-get update && apt-get install -y \
20
+ fonts-liberation \
21
+ && rm -rf /var/lib/apt/lists/*
22
 
23
  # Expose the port the app runs on
24
+ EXPOSE 7860
25
 
26
  # Define the command to run your app using Gunicorn
27
+ CMD ["gunicorn", "--log-level", "debug", "-b", "0.0.0.0:7860", "app:app"]
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
  Flask==2.2.0
2
- Pillow
3
  python-dotenv
4
  gunicorn
5
  Werkzeug==2.2.3
 
1
  Flask==2.2.0
2
+ Pillow==10.0.0
3
  python-dotenv
4
  gunicorn
5
  Werkzeug==2.2.3