mirror of
https://github.com/evroon/bracket.git
synced 2026-04-24 09:17:06 -04:00
Fix corepack issue in dockerfile (#1509)
This commit is contained in:
4
.github/workflows/docker-build.yml
vendored
4
.github/workflows/docker-build.yml
vendored
@@ -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:
|
||||
|
||||
1
.github/workflows/frontend.yml
vendored
1
.github/workflows/frontend.yml
vendored
@@ -7,6 +7,7 @@ on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/**'
|
||||
- 'frontend/**'
|
||||
push:
|
||||
branches:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user