11 lines
No EOL
440 B
Docker
11 lines
No EOL
440 B
Docker
# Build stage of the application
|
|
FROM oven/bun@sha256:30b6593d5646d1d695ed0c68c76ed370de538f5f49c34ed565386fd455bf6194 AS build
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN bun i && bun run build
|
|
|
|
# Production stage to run the application
|
|
FROM cgr.dev/chainguard/nginx@sha256:42430f713d950dc1269dc22cc46e4dadb5085a016031093c71de064ba1ba797b AS production
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["nginx", "-g", "daemon off;"] |