Compare commits

...

2 Commits

Author SHA1 Message Date
6f0d9fe925 ci: add Dockerfile and docker build for api
All checks were successful
Build and Push Docker Image / build (push) Successful in 47s
2024-09-28 21:10:51 +02:00
342cd10615 chore: remove .env.example 2024-09-28 21:09:55 +02:00
4 changed files with 15 additions and 2 deletions

View File

@ -1 +0,0 @@
POSTGRES_URL=postgres://postgres:postgres@localhost:5432/postgres

BIN
bun.lockb

Binary file not shown.

11
ci/docker/api/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM oven/bun:1
COPY ./build/api .
ENV HOST=0.0.0.0
ENV PORT=3000
USER bun
EXPOSE 3000/tcp
ENTRYPOINT [ "bun", "run", "index.js" ]

View File

@ -9,7 +9,10 @@
"build": "bun --filter '*' build",
"docker:website:build": "docker build -t git.hashdot.co/boring.tools/boring.tools/website -f ci/docker/website/Dockerfile .",
"docker:website:push": "docker push git.hashdot.co/boring.tools/boring.tools/website",
"docker:website": "bun docker:website:build && bun docker:website:push"
"docker:website": "bun docker:website:build && bun docker:website:push",
"docker:api:build": "docker build -t git.hashdot.co/boring.tools/boring.tools/api -f ci/docker/api/Dockerfile .",
"docker:api:push": "docker push git.hashdot.co/boring.tools/boring.tools/api",
"docker:api": "bun docker:api:build && bun docker:api:push"
},
"packageManager": "bun@1.1.29",
"workspaces": [