Testing.
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m59s

This commit is contained in:
Cameron Redmore 2025-08-08 19:47:36 +01:00
parent 5678df1da0
commit 212351ef2a
No known key found for this signature in database

View file

@ -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