Skip to content

Commit

Permalink
Uniform casing i Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasDybdahl committed Sep 17, 2024
1 parent 819e67d commit 3cd8ae2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand All @@ -41,23 +41,23 @@ 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

#########################################
# 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

#########################################
# Server
#########################################
FROM ${NODE_IMG} as server
FROM ${NODE_IMG} AS server
ARG SERVER
WORKDIR /usr/src/app

Expand Down

0 comments on commit 3cd8ae2

Please sign in to comment.