mirror of
https://github.com/SrIzan10/prox2-discord.git
synced 2026-06-06 01:06:57 +00:00
chore: dockerfile
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
FROM oven/bun:latest AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json bun.lockb* ./
|
||||
|
||||
RUN bun install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN bun run build
|
||||
|
||||
RUN bunx prisma generate
|
||||
|
||||
FROM oven/bun:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/prisma ./prisma
|
||||
COPY --from=builder /app/package.json ./
|
||||
|
||||
CMD ["sh", "-c", "bunx prisma migrate deploy && bun run ."]
|
||||
@@ -6,7 +6,7 @@
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"build": "sern build",
|
||||
"start": "bunx prisma generate && bunx prisma migrate deploy && bun run .",
|
||||
"start": "bunx prisma migrate deploy && bun run .",
|
||||
"install": "sern build",
|
||||
"commands:publish": "sern commands publish",
|
||||
"dev": "sern build -w --watch-command \"bun start\""
|
||||
|
||||
Reference in New Issue
Block a user