Skip to content

Commit

Permalink
docker: Fix multiplatform docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Mar 22, 2024
1 parent c505497 commit bcefe0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
################# Base Builder ##############
FROM node:21-alpine AS base
FROM --platform=$BUILDPLATFORM node:21-alpine AS base

WORKDIR /app
ENV PNPM_HOME="/pnpm"
Expand Down Expand Up @@ -31,7 +31,7 @@ RUN pnpm next experimental-compile

################# The Web App ##############

FROM node:21-alpine AS web
FROM --platform=$BUILDPLATFORM node:21-alpine AS web
WORKDIR /app

ENV NODE_ENV production
Expand Down Expand Up @@ -69,7 +69,7 @@ RUN --mount=type=cache,id=pnpm_workers,target=/pnpm/store pnpm deploy --node-lin

################# The workers ##############

FROM node:21-alpine AS workers
FROM --platform=$BUILDPLATFORM node:21-alpine AS workers
WORKDIR /app

# Install chromium needed for puppeteer
Expand Down

0 comments on commit bcefe0f

Please sign in to comment.