diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..f965aed --- /dev/null +++ b/.dockerignore @@ -0,0 +1,15 @@ +node_modules +Dockerfile* +docker-compose* +.dockerignore +.git +.gitignore +README.md +LICENSE +.vscode +Makefile +helm-charts +.env +.editorconfig +.idea +coverage* diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4dc3666 --- /dev/null +++ b/Dockerfile @@ -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" ] diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..a782733 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,5 @@ +services: + netgate-switch: + build: . + ports: + - "7000:7000"