1 FROM golang:1.22 AS builder
6 RUN CGO_ENABLED=0 go build -o /app/server cmd/mobius-hotline-server/main.go && chmod a+x /app/server
8 FROM debian:stable-slim
10 # Change these as you see fit. This makes bind mounting easier so you don't have to edit bind mounted config files as root.
15 COPY --from=builder /app/server /app/server
16 COPY --from=builder /app/cmd/mobius-hotline-server/mobius/config /usr/local/var/mobius/config
17 RUN useradd -d /app -u ${UID} ${USERNAME}
18 RUN chown -R ${USERNAME}:${USERNAME} /app
22 ENTRYPOINT ["/app/server"]