From f96c8be12390ad80d827b514c8ec6f66f2d701cb Mon Sep 17 00:00:00 2001 From: Korbs Date: Fri, 21 Jun 2024 02:41:13 -0400 Subject: [PATCH] Add Docker files --- .docker/.drone.yml | 0 .docker/Dockerfile | 12 ++++++++++++ .docker/docker-compose.yml | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100644 .docker/.drone.yml create mode 100644 .docker/Dockerfile create mode 100644 .docker/docker-compose.yml diff --git a/.docker/.drone.yml b/.docker/.drone.yml new file mode 100644 index 0000000..e69de29 diff --git a/.docker/Dockerfile b/.docker/Dockerfile new file mode 100644 index 0000000..6a57cd7 --- /dev/null +++ b/.docker/Dockerfile @@ -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 \ No newline at end of file diff --git a/.docker/docker-compose.yml b/.docker/docker-compose.yml new file mode 100644 index 0000000..8d23850 --- /dev/null +++ b/.docker/docker-compose.yml @@ -0,0 +1,6 @@ +services: + nginx: + image: docker.io/library/demo-thingie + restart: unless-stopped + ports: + - 6003:4321 \ No newline at end of file