Skip to content

Commit

Permalink
refactor(docker): update NPM scripts used
Browse files Browse the repository at this point in the history
  • Loading branch information
TAnas0 committed Sep 12, 2024
1 parent 6fc50ba commit 6d8476b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@ FROM node:22.8.0-alpine3.20 AS builder

WORKDIR /usr/app

# See .dockerignore for copied files
COPY . .

RUN npm install --no-package-lock
RUN npm run build:production
RUN npm install
RUN npm run build

FROM node:22.8.0-alpine3.20

WORKDIR /app
COPY --from=builder /usr/app/dist /app/dist
COPY --from=builder /usr/app/package.json /app/package.json
# EXPOSE 4000

CMD ["node", "./dist/main.js"]

RUN npm install


CMD ["node", "./dist/main.js"]

0 comments on commit 6d8476b

Please sign in to comment.