fix: update svelte-hero-icons
This commit is contained in:
1 parent
b3e3c81c04
commit
95676518dd
1 file changed
+26
-16
+26
-16
@@ -1,24 +1,34 @@
|
|||||||
FROM node:20-alpine AS builder
|
# Base stage for both Bun and Node.js
|
||||||
|
FROM alpine:3.14 as base
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
COPY package.json .
|
||||||
|
|
||||||
COPY package.json ./
|
# Bun stage
|
||||||
|
FROM oven/bun:1 as bun-builder
|
||||||
RUN npm install
|
WORKDIR /app
|
||||||
|
COPY --from=base /app/package.json .
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN bun install
|
||||||
|
RUN bun run build
|
||||||
|
|
||||||
RUN ADAPTER=bun npm run build
|
# Node.js stage
|
||||||
|
FROM node:18-alpine as node-builder
|
||||||
FROM oven/bun:alpine
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
COPY --from=base /app/package.json .
|
||||||
|
COPY . .
|
||||||
|
RUN npm install
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
COPY --from=builder /app/node_modules /app/node_modules
|
# Final Bun image
|
||||||
COPY --from=builder /app/build /app/build
|
FROM oven/bun:1-alpine AS bun
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=bun-builder /app .
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
USER bun
|
|
||||||
|
|
||||||
CMD ["bun", "/app/build/index.js"]
|
CMD ["bun", "/app/build/index.js"]
|
||||||
|
|
||||||
|
# Final Node.js image
|
||||||
|
FROM node:20-alpine AS node
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=node-builder /app .
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD ["node", "/app/build/index.js"]
|
||||||
Reference in new issue
Block a user