Wills17 commited on
Commit
1ac0115
·
verified ·
1 Parent(s): 8b017a0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -0
Dockerfile CHANGED
@@ -1,9 +1,22 @@
 
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /app
 
 
4
  COPY . /app
5
 
 
 
 
 
 
 
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  EXPOSE 7860
 
 
9
  CMD ["python", "flask_app.py"]
 
1
+ # Base image
2
  FROM python:3.10-slim
3
 
4
+ # Set working directory
5
  WORKDIR /app
6
+
7
+ # Copy files
8
  COPY . /app
9
 
10
+ # Install system dependencies
11
+ RUN apt-get update && apt-get install -y \
12
+ libglib2.0-0 libsm6 libxrender1 libxext6 \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ # Install Python dependencies
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ # Expose port
19
  EXPOSE 7860
20
+
21
+ # Run Flask app
22
  CMD ["python", "flask_app.py"]