From 3cd8ae241df4fc6cea6e7cd75169f71dde16a3d5 Mon Sep 17 00:00:00 2001 From: Andreas Dybdahl Date: Tue, 17 Sep 2024 10:54:45 +0200 Subject: [PATCH] Uniform casing i Dockerfile --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6d49079db0..b119eda72b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ ARG SERVER="server" ######################################### # PREPARE DEPS FOR BUILD ######################################### -FROM --platform=${BUILDPLATFORM} ${NODE_IMG} as prepare +FROM --platform=${BUILDPLATFORM} ${NODE_IMG} AS prepare WORKDIR /usr/src/app COPY ["package.json", ".npmrc", "pnpm-lock.yaml", "pnpm-workspace.yaml", "./"] COPY packages packages @@ -21,7 +21,7 @@ RUN find ${SERVER} \! -name "package.json" -mindepth 2 -maxdepth 2 -print | xarg ######################################### # BUILDER IMAGE - INSTALL PACKAGES AND COPY SOURCE ######################################### -FROM --platform=${BUILDPLATFORM} ${NODE_IMG} as builder +FROM --platform=${BUILDPLATFORM} ${NODE_IMG} AS builder WORKDIR /usr/src/app RUN apk fix \ && apk add --no-cache --update libc6-compat \ @@ -41,7 +41,7 @@ COPY . . ######################################### # BUILD SERVER ######################################### -FROM --platform=${BUILDPLATFORM} builder as server-build +FROM --platform=${BUILDPLATFORM} builder AS server-build ARG SERVER WORKDIR /usr/src/app/${SERVER} RUN pnpm exec turbo test @@ -49,7 +49,7 @@ RUN pnpm exec turbo test ######################################### # Client ######################################### -FROM --platform=${BUILDPLATFORM} builder as client +FROM --platform=${BUILDPLATFORM} builder AS client ARG APP WORKDIR /usr/src/app/apps/${APP} RUN pnpm exec turbo test && mv /usr/src/app/apps/${APP}/dist /public @@ -57,7 +57,7 @@ RUN pnpm exec turbo test && mv /usr/src/app/apps/${APP}/dist /public ######################################### # Server ######################################### -FROM ${NODE_IMG} as server +FROM ${NODE_IMG} AS server ARG SERVER WORKDIR /usr/src/app