Dyna-99 commited on
Commit
b8f7c03
·
verified ·
1 Parent(s): bc6ec8a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -26
Dockerfile CHANGED
@@ -1,26 +1,27 @@
1
- # Gunakan image Python
2
- FROM python:3.10-slim
3
-
4
- # Install dependencies sistem
5
- RUN apt-get update && apt-get install -y \
6
- build-essential \
7
- libglib2.0-0 \
8
- libsm6 \
9
- libxext6 \
10
- libxrender-dev \
11
- && rm -rf /var/lib/apt/lists/*
12
-
13
- # Buat working directory
14
- WORKDIR /app
15
-
16
- # Salin file
17
- COPY . .
18
-
19
- # Install requirements
20
- RUN pip install --no-cache-dir -r requirements.txt
21
-
22
- # Expose port
23
- EXPOSE 7860
24
-
25
- # Jalankan app
26
- CMD ["python", "app.py"]
 
 
1
+ # Gunakan image Python
2
+ FROM python:3.10-slim
3
+
4
+ # Install dependencies sistem
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ libglib2.0-0 \
8
+ libsm6 \
9
+ libxext6 \
10
+ libxrender-dev \
11
+ libgl1-mesa-glx \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ # Buat working directory
15
+ WORKDIR /app
16
+
17
+ # Salin file
18
+ COPY . .
19
+
20
+ # Install requirements
21
+ RUN pip install --no-cache-dir -r requirements.txt
22
+
23
+ # Expose port
24
+ EXPOSE 7860
25
+
26
+ # Jalankan app
27
+ CMD ["python", "app.py"]