From bd32bfaae5dcb9931633b3c2e290a1285f5aa244 Mon Sep 17 00:00:00 2001 From: Steve White Date: Tue, 29 Oct 2024 19:41:34 -0500 Subject: [PATCH] Fixing build system --- .dockerignore | 2 ++ Dockerfile.build | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.dockerignore b/.dockerignore index 3d5ed1b..faccad0 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,5 @@ node_modules .git *.log +build +.DS_Store diff --git a/Dockerfile.build b/Dockerfile.build index df11716..48475aa 100644 --- a/Dockerfile.build +++ b/Dockerfile.build @@ -16,8 +16,8 @@ COPY . . # Build the application RUN npm run build -# Final stage: nothing needed, just to complete the multi-stage -FROM scratch +# Final stage: Use a minimal base image +FROM alpine:latest -# Copy the build output from the previous stage to a directory -COPY --from=build-stage /app/build ./build +# Copy the build output from the previous stage +COPY --from=build-stage /app/build ./build \ No newline at end of file