Merge pull request #215 from TxtDot/fix-docker

fix(docker): platform
This commit is contained in:
Artemy Egorov 2024-08-05 19:59:10 +03:00 committed by GitHub
commit 61fac52078
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
FROM node:20-alpine as base
FROM --platform=$TARGETPLATFORM node:20-alpine as base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
@ -12,7 +12,7 @@ FROM base AS build
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN pnpm run build
FROM node:20-alpine as run
FROM --platform=$TARGETPLATFORM node:20-alpine as run
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"