add some script

This commit is contained in:
DESKTOP-0P848CA\edinl_6z7c6t
2021-11-20 09:06:19 +08:00
parent 78c06f8fc4
commit 669e21930b
17 changed files with 4867 additions and 1198 deletions
+7 -4
View File
@@ -1,13 +1,16 @@
FROM node:10.1.0-alpine
FROM node:16.11.1-alpine
WORKDIR /app
COPY package.json /app/
COPY yarn.lock /app/
COPY package-lock.json /app/
RUN yarn install --production && yarn cache clean
RUN npm install
COPY . /app
ENV NODE_ENV production
ENTRYPOINT ["node", "-r", "esm", "./bin/server"]
EXPOSE 8080
CMD npm start