adowu commited on
Commit
bd1fde9
·
verified ·
1 Parent(s): 2c7cb25

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -1
Dockerfile CHANGED
@@ -1,13 +1,25 @@
 
1
  FROM python:3.9
2
 
 
 
 
 
 
3
  RUN useradd -m -u 1000 user
4
 
 
5
  WORKDIR /app
6
 
 
7
  RUN git clone https://github.com/opensumi/ide-startup
8
 
9
- RUN cd ide-startup
 
10
 
 
 
11
  RUN yarn
12
 
 
13
  CMD ["yarn", "start", "--host", "0.0.0.0", "--port", "8080"]
 
1
+ # Użyj obrazu Python 3.9 jako podstawy
2
  FROM python:3.9
3
 
4
+ # Zainstaluj Node.js i npm
5
+ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
6
+ RUN apt-get install -y nodejs
7
+
8
+ # Utwórz nowego użytkownika o nazwie "user" z identyfikatorem UID 1000
9
  RUN useradd -m -u 1000 user
10
 
11
+ # Ustaw katalog roboczy na /app
12
  WORKDIR /app
13
 
14
+ # Sklonuj repozytorium OpenSumi IDE z GitHub
15
  RUN git clone https://github.com/opensumi/ide-startup
16
 
17
+ # Zmień katalog na ide-startup
18
+ WORKDIR /app/ide-startup
19
 
20
+ # Zainstaluj zależności za pomocą Yarn
21
+ RUN npm install -g yarn
22
  RUN yarn
23
 
24
+ # Ustaw polecenie uruchamiania kontenera
25
  CMD ["yarn", "start", "--host", "0.0.0.0", "--port", "8080"]