wop commited on
Commit
c75e44e
1 Parent(s): 0ba2e8e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -1
Dockerfile CHANGED
@@ -1,13 +1,23 @@
1
  FROM python:3.9
2
 
 
 
 
 
 
 
3
  WORKDIR /code
4
 
5
  COPY ./requirements.txt /code/requirements.txt
6
 
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
-
10
  COPY . .
11
 
 
 
 
 
12
  CMD ["python3", "-m", "app", "--host", "0.0.0.0", "--port", "7860"]
13
 
 
 
1
  FROM python:3.9
2
 
3
+ # Install necessary system dependencies
4
+ RUN apt-get update && \
5
+ apt-get install -y --no-install-recommends \
6
+ python3-tk \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
  WORKDIR /code
10
 
11
  COPY ./requirements.txt /code/requirements.txt
12
 
13
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
14
 
 
15
  COPY . .
16
 
17
+ # Set up the environment variable to ensure Tkinter doesn't complain about no display
18
+ ENV DISPLAY=:99
19
+
20
+ # CMD to start the application
21
  CMD ["python3", "-m", "app", "--host", "0.0.0.0", "--port", "7860"]
22
 
23
+