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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue