RaBU1234 commited on
Commit
683e7da
·
verified ·
1 Parent(s): 887dc4b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -1,7 +1,11 @@
1
  FROM node:18-alpine
2
 
 
3
  RUN apk add --no-cache \
4
- python3 py3-pip git curl bash coreutils nginx
 
 
 
5
 
6
  WORKDIR /app
7
 
@@ -11,10 +15,8 @@ RUN npm install
11
  COPY . .
12
  COPY nginx.conf /etc/nginx/http.d/default.conf
13
 
14
- # Create directories without user switching issues
15
  RUN mkdir -p /var/log/nginx /var/lib/nginx/tmp /tmp/sandboxes
16
 
17
  EXPOSE 7860
18
 
19
- # Simple startup without user switching
20
  CMD sh -c "nginx -g 'daemon off;' & node server.js"
 
1
  FROM node:18-alpine
2
 
3
+ # Install all required tools
4
  RUN apk add --no-cache \
5
+ python3 py3-pip \
6
+ git curl bash coreutils nginx \
7
+ util-linux \
8
+ pnpm
9
 
10
  WORKDIR /app
11
 
 
15
  COPY . .
16
  COPY nginx.conf /etc/nginx/http.d/default.conf
17
 
 
18
  RUN mkdir -p /var/log/nginx /var/lib/nginx/tmp /tmp/sandboxes
19
 
20
  EXPOSE 7860
21
 
 
22
  CMD sh -c "nginx -g 'daemon off;' & node server.js"