mirror of
https://github.com/Kizuren/kizuren.dev.git
synced 2025-12-21 13:06:11 +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
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
COPY package.json bun.lock ./
|
||||
RUN bun install
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
RUN bun run build
|
||||
|
||||
FROM node:20-alpine
|
||||
FROM oven/bun:1.1.13-alpine
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/.output /app/.output
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=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