Skip to content

Commit

Permalink
add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusefendi52 committed Mar 30, 2024
1 parent 761a0a1 commit 8af3fcb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
node_modules
Dockerfile*
docker-compose*
.dockerignore
.git
.gitignore
README.md
LICENSE
.vscode
Makefile
helm-charts
.env
.editorconfig
.idea
coverage*
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM oven/bun:1 as builder
WORKDIR /builder

COPY package.json bun.lockb /app
RUN bun install --frozen-lockfile
COPY . .

RUN bun run build

FROM oven/bun:1
WORKDIR /app
COPY --from=builder /builder/.output .

USER bun
ARG APP_PORT=3000
EXPOSE $APP_PORT
ENTRYPOINT [ "bun" "run" ".output/server/index.mjs" ]

0 comments on commit 8af3fcb

Please sign in to comment.