Your IP : 216.73.216.224


Current Path : /home/hotlineuser/mobius/
Upload File :
Current File : //home/hotlineuser/mobius/Dockerfile

FROM golang:1.25 AS builder

WORKDIR /app
COPY . .

RUN CGO_ENABLED=0 go build -ldflags "-X main.version=$(git describe --exact-match --tags)" -o /app/server cmd/mobius-hotline-server/main.go && chmod a+x /app/server

FROM scratch

COPY --from=builder /app/server /app/server
COPY --from=builder /app/cmd/mobius-hotline-server/mobius/config /usr/local/var/mobius/config

EXPOSE 5500 5501

ENTRYPOINT ["/app/server"]