Fix Dockerfile stage references for clarity and correct build context
Some checks failed
Building and publishing Homebrewery as Docker Image / build (release) Failing after 31m38s

This commit is contained in:
Florian Weber 2025-06-24 15:13:46 +02:00
parent ffab318254
commit 4b6efcea6e
Signed by: f.weber
GPG Key ID: B162B599E31221C6

View File

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