Fix: Dockerfile build process
All checks were successful
release-tag / release-image (push) Successful in 1m50s
All checks were successful
release-tag / release-image (push) Successful in 1m50s
This commit is contained in:
@@ -1,11 +1,10 @@
|
|||||||
FROM node:22.4-slim AS build
|
FROM node:22.4-slim AS build
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
COPY ./package.json ./package-lock.json .
|
COPY . .
|
||||||
RUN npm ci && npm run build
|
RUN npm ci && npm run build
|
||||||
|
|
||||||
FROM gcr.io/distroless/nodejs22-debian12
|
FROM gcr.io/distroless/nodejs22-debian12
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
COPY --from=build /work /work
|
COPY --from=build /work /work
|
||||||
COPY . /work
|
|
||||||
|
|
||||||
CMD ["index.js"]
|
CMD ["index.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user