]>
Commit | Line | Data |
---|---|---|
2327c11f | 1 | FROM golang:1.22 AS builder |
6988a057 JH |
2 | |
3 | WORKDIR /app | |
4 | COPY . . | |
5 | ||
bc385afd | 6 | RUN CGO_ENABLED=0 go build -o /app/server cmd/mobius-hotline-server/main.go && chmod a+x /app/server |
6988a057 | 7 | |
d4207f0d | 8 | FROM scratch |
75b7ce6f | 9 | |
bc385afd | 10 | COPY --from=builder /app/server /app/server |
75b7ce6f | 11 | COPY --from=builder /app/cmd/mobius-hotline-server/mobius/config /usr/local/var/mobius/config |
d4207f0d | 12 | |
75b7ce6f | 13 | EXPOSE 5500 5501 |
bddd9d4a | 14 | |
8796b449 | 15 | ENTRYPOINT ["/app/server"] |