parent
e8ec3f6b26
commit
c7fbc56e05
15
Dockerfile
15
Dockerfile
@ -1,12 +1,7 @@
|
||||
FROM node:lts-alpine
|
||||
ENV NODE_ENV=production
|
||||
FROM node:alpine
|
||||
WORKDIR /usr/src/app
|
||||
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
|
||||
RUN npm install --silent && mv node_modules ../
|
||||
COPY . .
|
||||
RUN chown -R node /usr/src/app
|
||||
USER node
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
RUN npx tsc
|
||||
|
||||
CMD ["npm", "start"]
|
||||
COPY . .
|
||||
CMD [ "npm", "start" ]
|
Loading…
Reference in New Issue
Block a user