diff --git a/Dockerfile b/Dockerfile index a517bbd..4d66e40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:latest AS build +FROM --platform=$BUILDPLATFORM node:lts AS build WORKDIR /app/ @@ -9,7 +9,7 @@ RUN --mount=type=cache,target=/root/.cache/node \ npm install --prefer-offline && \ npm run build -FROM nginx:latest +FROM --platform=$BUILDPLATFORM nginx:stable COPY --from=build /app/dist/ /usr/share/nginx/html/ COPY docker/nginx.conf /etc/nginx/conf.d/default.conf