Testing.
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m59s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m59s
This commit is contained in:
parent
5678df1da0
commit
212351ef2a
1 changed files with 4 additions and 7 deletions
11
Dockerfile
11
Dockerfile
|
@ -15,16 +15,13 @@ COPY . .
|
||||||
# Build the frontend with Vite and compile the server to executable
|
# Build the frontend with Vite and compile the server to executable
|
||||||
RUN bun run build
|
RUN bun run build
|
||||||
|
|
||||||
# Minimal production stage using Debian slim (includes bash for debugging)
|
# Minimal production stage using distroless debian
|
||||||
FROM debian:12-slim
|
FROM gcr.io/distroless/cc-debian12
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy the compiled executable from the build stage
|
# Copy the built assets
|
||||||
COPY --from=builder /app/dist/server /app/server
|
COPY --from=builder /app/dist/* /app/dist/
|
||||||
|
|
||||||
# Copy the built frontend assets (but ensure we don't overwrite the server executable)
|
|
||||||
COPY --from=builder /app/dist/*.html /app/dist/
|
|
||||||
COPY --from=builder /app/dist/assets /app/dist/assets
|
COPY --from=builder /app/dist/assets /app/dist/assets
|
||||||
|
|
||||||
# Expose the port
|
# Expose the port
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue