feat: support building docker image
This commit is contained in:
parent
efacb10259
commit
abe028577d
15
.dockerignore
Normal file
15
.dockerignore
Normal file
@ -0,0 +1,15 @@
|
||||
node_modules
|
||||
Dockerfile*
|
||||
docker-compose*
|
||||
.dockerignore
|
||||
.git
|
||||
.gitignore
|
||||
README.md
|
||||
LICENSE
|
||||
.vscode
|
||||
Makefile
|
||||
helm-charts
|
||||
.env
|
||||
.editorconfig
|
||||
.idea
|
||||
coverage*
|
8
Dockerfile
Normal file
8
Dockerfile
Normal file
@ -0,0 +1,8 @@
|
||||
FROM oven/bun:1
|
||||
WORKDIR /usr/src/app
|
||||
COPY . .
|
||||
RUN bun install --frozen-lockfile --production
|
||||
ENV NODE_ENV=production
|
||||
USER bun
|
||||
EXPOSE 7000/tcp
|
||||
ENTRYPOINT [ "bun", "run", "index.ts" ]
|
5
compose.yaml
Normal file
5
compose.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
services:
|
||||
netgate-switch:
|
||||
build: .
|
||||
ports:
|
||||
- "7000:7000"
|
Loading…
x
Reference in New Issue
Block a user