Fix assets to be copied
This commit is contained in:
parent
547b3b1440
commit
6365a2ecb2
1 changed files with 6 additions and 6 deletions
12
Dockerfile
12
Dockerfile
|
|
@ -23,16 +23,16 @@ RUN pnpm build
|
||||||
|
|
||||||
# Production image
|
# Production image
|
||||||
FROM nginx:alpine AS runner
|
FROM nginx:alpine AS runner
|
||||||
|
|
||||||
|
# Copy built app and static assets
|
||||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
||||||
|
|
||||||
# Create videos directory
|
|
||||||
RUN mkdir -p /usr/share/nginx/html/videos
|
|
||||||
|
|
||||||
# Copy specific directories from public
|
|
||||||
COPY --from=builder /app/public/images /usr/share/nginx/html/images
|
COPY --from=builder /app/public/images /usr/share/nginx/html/images
|
||||||
COPY --from=builder /app/public/subtitles /usr/share/nginx/html/subtitles
|
COPY --from=builder /app/public/subtitles /usr/share/nginx/html/subtitles
|
||||||
COPY --from=builder /app/public/transcriptions /usr/share/nginx/html/transcriptions
|
COPY --from=builder /app/public/transcriptions /usr/share/nginx/html/transcriptions
|
||||||
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
|
# Create videos directory for volume mount
|
||||||
|
RUN mkdir -p /usr/share/nginx/html/videos
|
||||||
|
|
||||||
EXPOSE 804
|
EXPOSE 804
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue