deepak191z commited on
Commit
a55f20e
·
verified ·
1 Parent(s): 386db90

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -1,8 +1,9 @@
1
  FROM node:18-slim
2
 
3
- # Install OpenJDK 17 (required for apk-mitm or other Java-based tools)
4
  RUN apt-get update && apt-get install -y \
5
  openjdk-17-jdk \
 
6
  && rm -rf /var/lib/apt/lists/*
7
 
8
  ENV HOME=/home/node
@@ -18,7 +19,7 @@ RUN --mount=type=secret,id=URL,mode=0444,required=true \
18
  RUN npm install -g apk-mitm
19
  RUN npm install
20
 
21
- # Create uploads directory and adjust permissions (adjust path as needed)
22
  RUN mkdir -p $HOME/app/uploads && chown -R node:node $HOME/app
23
 
24
  # Switch to the pre-created node user for running the app
 
1
  FROM node:18-slim
2
 
3
+ # Install OpenJDK 17 and Git (required for apk-mitm and git clone)
4
  RUN apt-get update && apt-get install -y \
5
  openjdk-17-jdk \
6
+ git \
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
  ENV HOME=/home/node
 
19
  RUN npm install -g apk-mitm
20
  RUN npm install
21
 
22
+ # Create uploads directory and adjust permissions
23
  RUN mkdir -p $HOME/app/uploads && chown -R node:node $HOME/app
24
 
25
  # Switch to the pre-created node user for running the app