Skip to content

Commit

Permalink
chore: upgrade base node and copy all the statics
Browse files Browse the repository at this point in the history
  • Loading branch information
meysam81 committed Nov 4, 2024
1 parent b9caf2d commit 2ce659f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
15 changes: 13 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
node_modules/
.circleci
.git*
.prettier*
.reference-ignore
CODE_OF_CONDUCT.md
contrib
CONTRIBUTING.md
Dockerfile*
lib/
.git
Makefile
node_modules/
nodemon.json
openapitools.json
SECURITY.md
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine as builder
FROM node:22-alpine as builder

WORKDIR /usr/src/app

Expand All @@ -21,9 +21,7 @@ FROM gcr.io/distroless/nodejs22-debian12:nonroot

WORKDIR /usr/src/app

COPY --from=builder /usr/src/app/package.json /usr/src/app/package-lock.json ./
COPY --from=builder /usr/src/app/node_modules ./node_modules
COPY --from=builder /usr/src/app/lib ./lib
COPY --from=builder /usr/src/app/ ./

ENV PORT=3000
EXPOSE ${PORT}
Expand Down

0 comments on commit 2ce659f

Please sign in to comment.