FIX(docker): fix Dockerfile paths

- Support both local and CI builds
- Fix path references
This commit is contained in:
2025-11-22 23:50:18 +09:00
parent 22ad3c1e31
commit b39f27cd61
2 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ jobs:
id: build
uses: docker/build-push-action@v5
with:
context: .
context: ./services/nextjs
file: ./deploy/docker/Dockerfile.prod
push: true
tags: ${{ steps.meta.outputs.tags }}

View File

@@ -8,14 +8,14 @@ RUN apk add --no-cache libc6-compat curl
WORKDIR /app
# Install dependencies based on the preferred package manager
COPY services/nextjs/package.json services/nextjs/package-lock.json* ./
COPY package.json package-lock.json* ./
RUN npm ci
# Rebuild the source code only when needed
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY services/nextjs/. .
COPY . .
# Build the application
ENV NEXT_TELEMETRY_DISABLED=1