fix: copy public assets to dist
This commit is contained in:
parent
7b27845812
commit
620666e7f1
1 changed files with 3 additions and 1 deletions
|
|
@ -2,11 +2,12 @@ FROM node:20-alpine AS base
|
|||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||
WORKDIR /app
|
||||
|
||||
# Create required directories
|
||||
RUN mkdir -p /app/public/images/thumbnails \
|
||||
/app/public/videos \
|
||||
/app/public/subtitles \
|
||||
/app/public/transcriptions
|
||||
|
||||
|
||||
# Copy package files
|
||||
COPY package.json pnpm-lock.yaml* ./
|
||||
|
||||
|
|
@ -24,6 +25,7 @@ RUN pnpm build
|
|||
FROM base AS runner
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/dist ./dist
|
||||
# Copy specific directories from public
|
||||
COPY --from=builder /app/public/images ./dist/images
|
||||
COPY --from=builder /app/public/subtitles ./dist/subtitles
|
||||
COPY --from=builder /app/public/transcriptions ./dist/transcriptions
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue