Update Dockerfile
Browse files- 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
|
6 |
-
|
|
|
|
|
|
|
7 |
EXPOSE $PORT
|
8 |
-
CMD
|
|
|
|
|
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"]
|