mirror of
https://github.com/danielvici/tool-website.git
synced 2026-01-16 19:41:26 +00:00
switch to bun alpine image in dockerfile
This commit is contained in:
@@ -1,11 +1,7 @@
|
|||||||
# ---------- Build-Stage ----------
|
# ---------- Build-Stage mit Bun ----------
|
||||||
FROM node:22-alpine AS builder
|
FROM oven/bun:alpine AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apk add --no-cache curl \
|
|
||||||
&& curl -fsSL https://bun.sh/install | bash \
|
|
||||||
&& ln -s /root/.bun/bin/bun /usr/local/bin/bun
|
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN bun install
|
RUN bun install
|
||||||
|
|
||||||
@@ -18,7 +14,6 @@ FROM node:22-alpine
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN npm install -g serve@14
|
RUN npm install -g serve@14
|
||||||
|
|
||||||
COPY --from=builder /app/dist/tools-website ./dist/tools-website
|
COPY --from=builder /app/dist/tools-website ./dist/tools-website
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|||||||
Reference in New Issue
Block a user