Update Dockerfile
Browse files- Dockerfile +12 -1
Dockerfile
CHANGED
@@ -1 +1,12 @@
|
|
1 |
-
FROM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 -g pnpm
|
6 |
+
COPY package.json pnpm-lock.yaml ./
|
7 |
+
RUN pnpm install
|
8 |
+
COPY . .
|
9 |
+
RUN pnpm run build
|
10 |
+
ENV HOST=0.0.0.0 PORT=7860 NODE_ENV=production
|
11 |
+
EXPOSE $PORT
|
12 |
+
CMD ["node", "dist/server/entry.mjs"]
|