Skip to content

Instantly share code, notes, and snippets.

@chrisjung-dev
Created October 6, 2025 19:37
Show Gist options
  • Save chrisjung-dev/b59b1530d09cf141e53d420c671717c7 to your computer and use it in GitHub Desktop.
Save chrisjung-dev/b59b1530d09cf141e53d420c671717c7 to your computer and use it in GitHub Desktop.
Glowing Bear Docker Setup
:80 {
root * /app
file_server
}
services:
node:
build: .
container_name: glowingbear
ports:
- "3000:80"
volumes:
- "./Caddyfile:/etc/caddy/Caddyfile:ro"
restart: unless-stopped
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