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