adowu commited on
Commit
b15094b
1 Parent(s): cc09239

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -3,10 +3,12 @@ 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
@@ -18,8 +20,8 @@ RUN git clone https://github.com/opensumi/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"]
 
3
 
4
  # Zainstaluj Node.js i npm
5
  RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
6
+ RUN apt-get update && apt-get install -y \
7
+ sudo \
8
+ nodejs
9
 
10
  # Utwórz nowego użytkownika o nazwie "user" z identyfikatorem UID 1000
11
+ RUN sudo useradd -m -u 1000 user
12
 
13
  # Ustaw katalog roboczy na /app
14
  WORKDIR /app
 
20
  WORKDIR /app/ide-startup
21
 
22
  # Zainstaluj zależności za pomocą Yarn
23
+ RUN sudo npm install -g yarn
24
+ RUN sudo yarn
25
 
26
  # Ustaw polecenie uruchamiania kontenera
27
  CMD ["yarn", "start"]