2ch commited on
Commit
e77d835
·
verified ·
1 Parent(s): ad19e87

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -2,10 +2,7 @@ FROM node:alpine
2
  RUN apk add git curl bash wget sudo
3
  WORKDIR /app
4
  RUN git clone https://github.com/anse-app/anse .
5
- RUN npm install -g pnpm
6
- RUN pnpm install
7
- COPY . .
8
- RUN pnpm run build
9
- ENV HOST=0.0.0.0 PORT=7860 NODE_ENV=production
10
  EXPOSE $PORT
11
- CMD ["node", "dist/server/entry.mjs"]
 
2
  RUN apk add git curl bash wget sudo
3
  WORKDIR /app
4
  RUN git clone https://github.com/anse-app/anse .
5
+ RUN npm install --no-audit --no-fund --loglevel=error --no-progress --omit=dev && npm cache clean --force
6
+ ENV HOST=0.0.0.0 PORT=7860
 
 
 
7
  EXPOSE $PORT
8
+ CMD npm run dev