mirror of
https://github.com/germondai/trawl.git
synced 2026-08-17 12:11:23 +02:00
fix(docker): use relative paths in web and docs Dockerfiles for per-directory build context
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user