From 212351ef2aee019cf8ffc8ab961408fe93316a70 Mon Sep 17 00:00:00 2001 From: Cameron Redmore Date: Fri, 8 Aug 2025 19:47:36 +0100 Subject: [PATCH] Testing. --- Dockerfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index eec3b75..aaf7f47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,16 +15,13 @@ COPY . . # Build the frontend with Vite and compile the server to executable RUN bun run build -# Minimal production stage using Debian slim (includes bash for debugging) -FROM debian:12-slim +# Minimal production stage using distroless debian +FROM gcr.io/distroless/cc-debian12 WORKDIR /app -# Copy the compiled executable from the build stage -COPY --from=builder /app/dist/server /app/server - -# Copy the built frontend assets (but ensure we don't overwrite the server executable) -COPY --from=builder /app/dist/*.html /app/dist/ +# Copy the built assets +COPY --from=builder /app/dist/* /app/dist/ COPY --from=builder /app/dist/assets /app/dist/assets # Expose the port