PookieDiatyz commited on
Commit
cbec269
·
verified ·
1 Parent(s): 01cd543

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -19,18 +19,23 @@ RUN apt-get update && \
19
  zip \
20
  wget \
21
  unzip \
22
- yarn \
23
  whois \
24
  software-properties-common || apt-get install -y --fix-missing
25
 
26
  # Install Node.js dan npm
27
  RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
28
  apt-get install -y nodejs && \
29
- npm install -g npm@latest # Adjust npm version if needed
30
 
31
- RUN npm install -g pm2
 
 
 
32
  RUN npm install -g yarn
33
 
 
 
 
34
  # Tambah user
35
  RUN useradd -m -u 1000 PookieDiatyz
36
 
 
19
  zip \
20
  wget \
21
  unzip \
 
22
  whois \
23
  software-properties-common || apt-get install -y --fix-missing
24
 
25
  # Install Node.js dan npm
26
  RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
27
  apt-get install -y nodejs && \
28
+ npm install -g npm@latest
29
 
30
+ # Remove existing Yarn if it exists
31
+ RUN rm -f /usr/bin/yarn
32
+
33
+ # Install Yarn
34
  RUN npm install -g yarn
35
 
36
+ # Install PM2
37
+ RUN npm install -g pm2
38
+
39
  # Tambah user
40
  RUN useradd -m -u 1000 PookieDiatyz
41