Created
October 6, 2025 19:37
-
-
Save chrisjung-dev/b59b1530d09cf141e53d420c671717c7 to your computer and use it in GitHub Desktop.
Glowing Bear Docker Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :80 { | |
| root * /app | |
| file_server | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| node: | |
| build: . | |
| container_name: glowingbear | |
| ports: | |
| - "3000:80" | |
| volumes: | |
| - "./Caddyfile:/etc/caddy/Caddyfile:ro" | |
| restart: unless-stopped |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM node:alpine AS builder | |
| WORKDIR /build | |
| # Install git | |
| RUN apk add --no-cache git | |
| # Clone the repo | |
| RUN git clone https://github.com/glowing-bear/glowing-bear.git . | |
| RUN npm ci && npm run build | |
| FROM caddy:latest | |
| WORKDIR /app | |
| COPY --from=builder /build/build /app | |
| EXPOSE 80 | |
| CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment