Skip to content

Commit

Permalink
fix: use bullseye slim
Browse files Browse the repository at this point in the history
  • Loading branch information
nayyara-airlangga committed Nov 7, 2023
1 parent be7d4c3 commit 80a162c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Installation
FROM node:18.18.2-alpine AS deps
RUN apk add --no-cache libc6-compat gcompat
FROM node:18.18.2-bullseye-slim AS deps

WORKDIR /app

Expand All @@ -9,7 +8,7 @@ RUN npm ci


# Build
FROM node:18.18.2-alpine AS builder
FROM node:18.18.2-bullseye-slim AS builder

WORKDIR /app

Expand All @@ -18,8 +17,7 @@ COPY --from=deps /app/node_modules ./node_modules
RUN npm run build && npm install --production --ignore-scripts --prefer-offline

# Runner
FROM node:18.18.2-alpine AS runner
RUN apk add --no-cache libc6-compat gcompat
FROM node:18.18.2-bullseye-slim AS runner

WORKDIR /app

Expand Down

0 comments on commit 80a162c

Please sign in to comment.