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
|
||||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||
WORKDIR /app
|
||||
RUN mkdir -p public/videos public/images public/subtitles public/transcriptions
|
||||
|
||||
# Copy package files
|
||||
COPY package.json pnpm-lock.yaml* ./
|
||||
|
|
@ -20,8 +19,9 @@ RUN pnpm build
|
|||
FROM base AS runner
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY --from=builder /app/public ./public
|
||||
RUN mkdir -p /app/dist/images /app/dist/subtitles /app/dist/transcriptions
|
||||
COPY --from=builder /app/public/images ./dist/images
|
||||
COPY --from=builder /app/public/subtitles ./dist/subtitles
|
||||
COPY --from=builder /app/public/transcriptions ./dist/transcriptions
|
||||
COPY package.json ./
|
||||
|
||||
EXPOSE 804
|
||||
|
|
|
|||
|
|
@ -13,4 +13,4 @@ export default defineConfig({
|
|||
host: true,
|
||||
strictPort: true
|
||||
}
|
||||
})
|
||||
})
|
||||
Loading…
Add table
Reference in a new issue