From 7a5bf74a91303c166882d63b508e08742e6dd68f Mon Sep 17 00:00:00 2001 From: Tom Udding Date: Fri, 21 Feb 2025 10:54:22 +0100 Subject: [PATCH] ci: fix casing warning for Dockerfile (#509) --- apps/dashboard/Dockerfile | 4 ++-- apps/point-of-sale/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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