Compare commits

...

4 Commits

Author SHA1 Message Date
StyleZhang
f8ed14fe29 test web dockerfile 2023-08-05 13:19:42 +08:00
StyleZhang
13df4f668d test web dockerfile 2023-08-05 07:12:17 +08:00
StyleZhang
3a12dbd9b4 test web dockerfile 2023-08-04 17:07:58 +08:00
StyleZhang
5e60bb80ee test web dockerfile 2023-08-04 16:39:06 +08:00
2 changed files with 7 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
FROM langgenius/base:1.0.1-bullseye-slim
FROM node:18.17.0-alpine
LABEL maintainer="takatost@gmail.com"
@@ -13,6 +13,8 @@ WORKDIR /app/web
COPY package.json /app/web/package.json
RUN npm install pm2 -g
RUN npm install --only=prod
COPY . /app/web/
@@ -26,4 +28,4 @@ RUN chmod +x /entrypoint.sh
ARG COMMIT_SHA
ENV COMMIT_SHA ${COMMIT_SHA}
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]

View File

@@ -108,5 +108,8 @@
"**/*.ts?(x)": [
"eslint --fix"
]
},
"engines": {
"node": "18.17.0"
}
}