FIX(docker): fix Docker build context and paths

- Correct build context configuration
- Fix file path references
This commit is contained in:
2025-11-22 23:48:43 +09:00
parent 535c2781fc
commit 22ad3c1e31
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: ./services/nextjs
context: .
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 package.json package-lock.json* ./
COPY services/nextjs/package.json services/nextjs/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 . .
COPY services/nextjs/. .
# Build the application
ENV NEXT_TELEMETRY_DISABLED=1