old changes

This commit is contained in:
Dobromir Popov
2023-08-23 12:43:43 +00:00
parent 88e9353b03
commit ba9389e7b0
19 changed files with 4319 additions and 64 deletions

View File

@@ -54,13 +54,20 @@
# oriiginal
FROM node:lts-alpine
FROM node:current-alpine
# current-alpine
ENV NODE_ENV=production
WORKDIR /app
# RUN npm install -g npm@9.6.2
# RUN apk update && apk add bash
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
RUN npm install --production --silent && mv node_modules ../
# RUN npm install --production --silent
# && mv node_modules ../
COPY . .
EXPOSE 8080 8081
RUN chown -R node /app
# RUN npm install dalai
USER node
CMD ["npm", "start"]