diff --git a/Dockerfile b/Dockerfile index a23704d..3e7832a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,16 +23,16 @@ RUN pnpm build # Production image FROM nginx:alpine AS runner + +# Copy built app and static assets 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/subtitles /usr/share/nginx/html/subtitles 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