mirror of
https://github.com/danielvici/tool-website.git
synced 2026-01-16 19:41:26 +00:00
21 lines
466 B
Docker
21 lines
466 B
Docker
# ---------- Build-Stage mit Bun ----------
|
|
FROM oven/bun:alpine AS builder
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
RUN bun install
|
|
|
|
COPY . .
|
|
RUN bun run build
|
|
RUN ls -la dist/tools-website && ls -la dist/tools-website/browser
|
|
|
|
# ---------- Runtime-Stage ----------
|
|
FROM node:22-alpine
|
|
WORKDIR /app
|
|
|
|
RUN npm install -g serve@14
|
|
COPY --from=builder /app/dist/tools-website ./dist/tools-website
|
|
|
|
EXPOSE 3000
|
|
CMD ["serve", "-s", "dist/tools-website/browser", "-l", "3000"]
|