Fix corepack issue in dockerfile (#1509)

This commit is contained in:
Erik Vroon
2025-12-31 14:48:01 +01:00
committed by GitHub
parent 099ac6f86b
commit 1dbd2c9ea6
4 changed files with 7 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
name: docker
name: docker build
permissions:
contents: read
@@ -18,7 +18,7 @@ on:
- 'master'
jobs:
build-and-push-image:
docker-build:
runs-on: ubuntu-24.04
steps:

View File

@@ -7,6 +7,7 @@ on:
workflow_dispatch:
pull_request:
paths:
- '.github/**'
- 'frontend/**'
push:
branches:

View File

@@ -7,7 +7,7 @@ ENV NODE_ENV=production
COPY frontend .
RUN corepack enable && \
RUN apk add pnpm && \
CI=true pnpm install && \
VITE_API_BASE_URL=http://localhost:8400/api pnpm build

View File

@@ -7,7 +7,9 @@ ENV NODE_ENV=production
COPY . .
RUN corepack enable && pnpm install && pnpm build
RUN apk add pnpm && \
CI=true pnpm install && \
pnpm build
# Production image, copy all the static files and run next
FROM caddy:2-alpine AS runner