This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM node:22.4-slim AS build
|
||||
WORKDIR /work
|
||||
COPY ./package.json ./package-lock.json .
|
||||
RUN npm ci && npm run build
|
||||
|
||||
FROM gcr.io/distroless/nodejs22-debian12
|
||||
WORKDIR /work
|
||||
COPY --from=build /work /work
|
||||
COPY . /work
|
||||
|
||||
CMD ["index.js"]
|
||||
Reference in New Issue
Block a user