Prime810 commited on
Commit
d2dd6b3
·
verified ·
1 Parent(s): 8b22856

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -1
Dockerfile CHANGED
@@ -1,9 +1,22 @@
1
  # Use a slim Python 3.10 base image
2
  FROM python:3.10-slim
3
 
4
- # Set the working directory inside the container
 
 
 
 
5
  WORKDIR /app
6
 
 
 
 
 
 
 
 
 
 
7
  # Copy and install Python dependencies
8
  COPY requirements.txt .
9
  RUN pip install --upgrade pip && \
 
1
  # Use a slim Python 3.10 base image
2
  FROM python:3.10-slim
3
 
4
+ # Set environment variables
5
+ ENV PYTHONDONTWRITEBYTECODE=1 \
6
+ PYTHONUNBUFFERED=1
7
+
8
+ # Set the working directory
9
  WORKDIR /app
10
 
11
+ # Install system dependencies
12
+ RUN apt-get update && apt-get install -y \
13
+ gcc \
14
+ libglib2.0-0 \
15
+ libsm6 \
16
+ libxext6 \
17
+ libxrender-dev \
18
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
19
+
20
  # Copy and install Python dependencies
21
  COPY requirements.txt .
22
  RUN pip install --upgrade pip && \