blob: 7d93a0e42a7c32429b106474c19f88b2ef5fe5c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
FROM golang:1.18 AS builder
WORKDIR /app
COPY . .
RUN CGO_ENABLED=0 go build -o /app/server/server cmd/mobius-hotline-server/main.go && chmod a+x /app/server/server
FROM scratch
WORKDIR /app/
COPY --from=builder /app/server/server ./
COPY --from=builder /app/cmd/mobius-hotline-server/mobius/config /usr/local/var/mobius/config
EXPOSE 5500 5501
ENTRYPOINT ["/app/server"]
CMD ["/app/server"]
|