From 4b6efcea6ecc23a5f30fcadb093ebba80de1d5b2 Mon Sep 17 00:00:00 2001 From: Florian Date: Tue, 24 Jun 2025 15:13:46 +0200 Subject: [PATCH] Fix Dockerfile stage references for clarity and correct build context --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index f01e195..60acf74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,24 @@ # Base Stage for NodeJS -FROM node:22-alpine as base +FROM node:22-alpine AS base ENV NODE_ENV=docker WORKDIR /usr/src/app # Installing dependencies with use of package-lock.json -FROM base as deps +FROM base AS deps RUN apk --no-cache add git COPY homebrewery/package.json homebrewery/package-lock.json ./ RUN npm ci --ignore-scripts # Build Stage -FROM base as builder +FROM base AS builder COPY --from=deps /usr/src/app/node_modules ./node_modules COPY homebrewery/ ./ RUN npm run build -FROM base as runner +FROM base AS runner ARG VERSION ARG REVISION @@ -48,7 +48,7 @@ RUN chmod +x /entrypoint.sh # Adding executables COPY --from=deps /usr/src/app/node_modules ./node_modules -COPY --from=deps /usr/src/app/build ./build +COPY --from=builder /usr/src/app/build ./build COPY homebrewery/ ./ EXPOSE 8000