Bun docker

This commit is contained in:
2023-09-20 13:50:07 +07:00
parent c266f14edb
commit 6a1bb52520
3 changed files with 210 additions and 0 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM oven/bun AS build
WORKDIR /home/node/app
COPY . .
RUN bun tsc
FROM oven/bun
WORKDIR /home/node/app
COPY . .
CMD [ "bun", "run", "src/index.ts"]