Skip to content

Commit

Permalink
update docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
SathyaBhat committed May 12, 2024
1 parent e53efba commit d5a8257
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,5 +1,5 @@
# Step 1: Builder image
FROM node:14.15.1-alpine3.12 AS builder
FROM node:22-bullseye-slim AS builder
COPY [".eslintrc.js", ".eslintignore", "tsconfig.json", "gulpfile.js", "package.json", "package-lock.json", "/command/"]
COPY src /command/src

Expand All @@ -13,7 +13,7 @@ RUN rm -rf node_modules
RUN npm install --production

# Step 2: Runtime image
FROM astefanutti/scratch-node:14.14.0
FROM node:22-bullseye-slim
COPY --from=builder /command/node_modules /app/node_modules
COPY --from=builder /command/dist/ /app/
ENTRYPOINT ["node", "/app/index.js"]

0 comments on commit d5a8257

Please sign in to comment.