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