Skip to content

Commit

Permalink
feat: production ready Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ndxbn committed Oct 29, 2024
1 parent ff42380 commit afca354
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM oven/bun:alpine@sha256:3dc101cc42433f8a470da07701441afdb1aab4c6d056a291eb405e348c5a5c37

COPY tsconfig.json ./
COPY main.ts ./
COPY lib/ ./
COPY src/ ./
COPY package.json bun.lockb ./

ENV NODE_ENV=production
RUN bun install --production --frozen-lockfile

ENTRYPOINT ["bun"]
CMD ["main.ts"]
CMD ["start"]

0 comments on commit afca354

Please sign in to comment.