mirror of
https://github.com/Kizuren/kizuren.dev.git
synced 2025-12-21 21:16:12 +01:00
Updated Dockerfile
This commit is contained in:
parent
222407c27a
commit
b6e29323fc
1 changed files with 6 additions and 6 deletions
12
Dockerfile
12
Dockerfile
|
|
@ -1,15 +1,15 @@
|
||||||
FROM node:20-alpine AS build
|
FROM oven/bun:1.1.13-alpine AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package.json bun.lock ./
|
||||||
RUN npm ci
|
RUN bun install
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN bun run build
|
||||||
|
|
||||||
FROM node:20-alpine
|
FROM oven/bun:1.1.13-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app/.output /app/.output
|
COPY --from=build /app/.output /app/.output
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENV PORT=3000
|
ENV PORT=3000
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["node", ".output/server/index.mjs"]
|
CMD ["bun", ".output/server/index.mjs"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue