Add Docker files
This commit is contained in:
parent
1d63b5d9f2
commit
f96c8be123
0
.docker/.drone.yml
Normal file
0
.docker/.drone.yml
Normal file
12
.docker/Dockerfile
Normal file
12
.docker/Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
FROM codeberg.org/korbs/bun:${ARCH} AS runtime
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN bun install
|
||||||
|
RUN bun run build
|
||||||
|
|
||||||
|
ENV HOST=0.0.0.0
|
||||||
|
ENV PORT=4321
|
||||||
|
EXPOSE 4321
|
||||||
|
CMD bun ./dist/server/entry.mjs
|
6
.docker/docker-compose.yml
Normal file
6
.docker/docker-compose.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
services:
|
||||||
|
nginx:
|
||||||
|
image: docker.io/library/demo-thingie
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- 6003:4321
|
Reference in a new issue