From 6365a2ecb2b6f241a5d3de8f21af5b9caeed9c9f Mon Sep 17 00:00:00 2001 From: TheMaddax Date: Mon, 9 Dec 2024 18:29:25 -0600 Subject: [PATCH] Fix assets to be copied --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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