Skip to content

Commit

Permalink
dockerfile update
Browse files Browse the repository at this point in the history
  • Loading branch information
petersem committed Feb 13, 2024
1 parent 81a188d commit b1639eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.11-apline
FROM node:lts-alpine as node
# tzdata for timzone and net-tools
RUN apk update
RUN apk add tzdata
Expand All @@ -8,7 +8,7 @@ ENV NODE_ENV=production

WORKDIR /usr/src/app
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
RUN npm install --production && mv node_modules ../
RUN npm install --production --silent && mv node_modules ../

COPY . .
EXPOSE 3000
Expand Down

0 comments on commit b1639eb

Please sign in to comment.