Skip to content

Commit

Permalink
fix: update dockerfile to use x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
nayyara-airlangga committed Nov 7, 2023
1 parent dea1edf commit 509c81e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Installation
FROM --platform=linux/amd64 node:18.18.2-alpine AS deps
FROM --platform=linux/x86_64 node:18.18.2-alpine AS deps
RUN apk add --no-cache libc6-compat

WORKDIR /app
Expand All @@ -9,7 +9,7 @@ RUN npm ci


# Build
FROM --platform=linux/amd64 node:18.18.2-alpine AS builder
FROM --platform=linux/x86_64 node:18.18.2-alpine AS builder

WORKDIR /app

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

# Runner
FROM --platform=linux/amd64 node:18.18.2-alpine AS runner
FROM --platform=linux/x86_64 node:18.18.2-alpine AS runner

WORKDIR /app

Expand Down

0 comments on commit 509c81e

Please sign in to comment.