init commit
This commit is contained in:
commit
2346fe4879
45 changed files with 2573 additions and 0 deletions
22
Dockerfile
Normal file
22
Dockerfile
Normal file
|
@ -0,0 +1,22 @@
|
|||
FROM oven/bun:alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY bun.lock ./
|
||||
COPY package.json ./
|
||||
COPY tsconfig.json ./
|
||||
|
||||
RUN bun install --production --frozen-lockfile
|
||||
|
||||
COPY prisma ./prisma/
|
||||
RUN bunx prisma generate
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
RUN bun run build
|
||||
|
||||
EXPOSE 4000
|
||||
|
||||
CMD bunx prisma migrate deploy && bunx prisma db seed && bun run start:prod
|
Loading…
Add table
Add a link
Reference in a new issue