diff --git a/apps/dashboard/Dockerfile b/apps/dashboard/Dockerfile index 779caf1a..7f8c0d7f 100644 --- a/apps/dashboard/Dockerfile +++ b/apps/dashboard/Dockerfile @@ -1,5 +1,5 @@ # Build in a different image to keep the target image clean -FROM node:20 as build +FROM node:20 AS build RUN corepack enable && yarn set version berry WORKDIR /app COPY lib/common/ lib/common/ @@ -14,7 +14,7 @@ ENV VITE_GIT_COMMIT_SHA=${GIT_COMMIT_SHA} RUN yarn run build-dashboard # The target image that will be run -FROM nginx:alpine as target +FROM nginx:alpine AS target WORKDIR /app COPY apps/dashboard/docker/nginx.conf /etc/nginx/nginx.conf COPY --from=build --chown=nginx /app/apps/dashboard/dist/ /app diff --git a/apps/point-of-sale/Dockerfile b/apps/point-of-sale/Dockerfile index 35065595..764b8ffe 100644 --- a/apps/point-of-sale/Dockerfile +++ b/apps/point-of-sale/Dockerfile @@ -1,5 +1,5 @@ # Build in a different image to keep the target image clean -FROM node:20 as build +FROM node:20 AS build RUN corepack enable && yarn set version berry WORKDIR /app COPY lib/common/ lib/common/ @@ -14,7 +14,7 @@ ENV VITE_GIT_COMMIT_SHA=${GIT_COMMIT_SHA} RUN yarn run build-pos # The target image that will be run -FROM nginx:alpine as target +FROM nginx:alpine AS target WORKDIR /app COPY apps/point-of-sale/docker/nginx.conf /etc/nginx/nginx.conf COPY --from=build --chown=nginx /app/apps/point-of-sale/dist/ /app