Browse Source

fix: docker multi platform (#433)

Shuyoou 1 year ago
parent
commit
485c15e3ab
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Dockerfile

+ 2 - 2
Dockerfile

@@ -1,5 +1,5 @@
 # => Building container
-FROM --platform=$BUILDPLATFORM node:18-slim as builder
+FROM --platform=$TARGETPLATFORM node:18-slim as builder
 WORKDIR /app
 COPY . .
 
@@ -19,7 +19,7 @@ ENV PORT 80
 RUN yarn build
 
 # => Copy to Final container
-FROM --platform=$BUILDPLATFORM node:18-slim
+FROM --platform=$TARGETPLATFORM node:18-slim
 WORKDIR /app
 COPY --from=builder /app/server/dist /app/dist
 COPY --from=builder /app/client/build /app/build