fix: ensure all public assets are copied to dist
This commit is contained in:
parent
b4a89287bd
commit
a85d4e2ee9
2 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
FROM node:20-alpine AS base
|
FROM node:20-alpine AS base
|
||||||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN mkdir -p public/videos public/images public/subtitles public/transcriptions
|
|
||||||
|
|
||||||
# Copy package files
|
# Copy package files
|
||||||
COPY package.json pnpm-lock.yaml* ./
|
COPY package.json pnpm-lock.yaml* ./
|
||||||
|
|
@ -20,8 +19,9 @@ RUN pnpm build
|
||||||
FROM base AS runner
|
FROM base AS runner
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
COPY --from=builder /app/dist ./dist
|
COPY --from=builder /app/dist ./dist
|
||||||
COPY --from=builder /app/public ./public
|
COPY --from=builder /app/public/images ./dist/images
|
||||||
RUN mkdir -p /app/dist/images /app/dist/subtitles /app/dist/transcriptions
|
COPY --from=builder /app/public/subtitles ./dist/subtitles
|
||||||
|
COPY --from=builder /app/public/transcriptions ./dist/transcriptions
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
|
|
||||||
EXPOSE 804
|
EXPOSE 804
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue