fix(docker): use relative paths in web and docs Dockerfiles for per-directory build context

This commit is contained in:
germondai
2026-06-26 20:42:01 +02:00
parent 522432cf18
commit a59474d8de
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -5,16 +5,16 @@ RUN apk add --no-cache git
WORKDIR /app
COPY apps/docs/package.json ./package.json
COPY package.json ./
RUN bun install
COPY apps/docs/ ./
COPY . ./
RUN bun run build
FROM nginx:alpine AS runner
COPY --from=builder /app/.vitepress/dist /usr/share/nginx/html
COPY apps/docs/nginx.conf /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
+3 -3
View File
@@ -2,16 +2,16 @@ FROM oven/bun:1.3.14-alpine AS builder
WORKDIR /app
COPY apps/web/package.json ./
COPY package.json ./
RUN bun --bun install
COPY apps/web/ ./
COPY . ./
RUN bunx --bun nuxt generate
FROM nginx:alpine AS runner
COPY --from=builder /app/.output/public /usr/share/nginx/html
COPY apps/web/nginx.conf /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80