TDN-M commited on
Commit
0676717
·
verified ·
1 Parent(s): fc43d0c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -1
Dockerfile CHANGED
@@ -1,4 +1,3 @@
1
- # Sử dụng image Python làm base
2
  FROM python:3.9-slim
3
 
4
  # Thiết lập thư mục làm việc
@@ -10,5 +9,15 @@ COPY . .
10
  # Cài đặt các thư viện từ requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
 
 
 
 
 
 
 
 
 
 
13
  # Khởi động ứng dụng
14
  CMD ["python", "main.py"]
 
 
1
  FROM python:3.9-slim
2
 
3
  # Thiết lập thư mục làm việc
 
9
  # Cài đặt các thư viện từ requirements.txt
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
+ # Cài đặt wget
13
+ RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*
14
+
15
+ # Tải và giải nén openvscode-server
16
+ RUN wget https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v1.86.2/openvscode-server-v1.86.2-linux-x64.tar.gz -O /tmp/openvscode-server.tar.gz && \
17
+ tar -xzf /tmp/openvscode-server.tar.gz -C /opt && \
18
+ rm /tmp/openvscode-server.tar.gz && \
19
+ mv /opt/openvscode-server-v1.86.2-linux-x64 /opt/openvscode-server && \
20
+ chown -R 1000:1000 /opt/openvscode-server
21
+
22
  # Khởi động ứng dụng
23
  CMD ["python", "main.py"]