2ch commited on
Commit
91c53b8
·
verified ·
1 Parent(s): 5322fe4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -1,8 +1,10 @@
1
- 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 --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
 
 
1
  RUN apk add git curl bash wget sudo
2
  WORKDIR /app
3
  RUN git clone https://github.com/anse-app/anse .
4
+ RUN npm install -g pnpm
5
+ RUN pnpm install
6
+ COPY . .
7
+ RUN pnpm run build
8
+ ENV HOST=0.0.0.0 PORT=7860 NODE_ENV=production
9
  EXPOSE $PORT
10
+ CMD ["node", "dist/server/entry.mjs"]