mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-02-21 18:02:01 +00:00
switch to node
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m29s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m29s
This commit is contained in:
parent
d5c9253b04
commit
7bfdc10a5a
@ -1,18 +1,21 @@
|
||||
FROM oven/bun:1.1.42-debian AS builder
|
||||
FROM node:20-slim AS builder
|
||||
WORKDIR /var/www/html
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
COPY . .
|
||||
RUN bun install --frozen-lockfile
|
||||
RUN bunx prisma generate
|
||||
RUN bun run build
|
||||
RUN npm ci --legacy-peer-deps
|
||||
RUN npx prisma generate
|
||||
RUN npm run build
|
||||
|
||||
FROM oven/bun:1.1.42-debian
|
||||
FROM node:20-slim
|
||||
WORKDIR /var/www/html
|
||||
|
||||
COPY --from=builder /var/www/html/package.json ./
|
||||
COPY --from=builder /var/www/html/node_modules ./node_modules
|
||||
COPY --from=builder /var/www/html/.next ./.next
|
||||
COPY --from=builder /var/www/html/public ./public
|
||||
COPY --from=builder /var/www/html/prisma ./prisma
|
||||
|
||||
VOLUME /var/www/html
|
||||
CMD ["bun", "start"]
|
||||
|
||||
CMD ["npm", "start"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user