mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-28 06:22:12 +08:00
20 lines
323 B
Docker
20 lines
323 B
Docker
FROM golang:1.19.0 as build
|
|
|
|
WORKDIR /openim
|
|
COPY . .
|
|
|
|
RUN make fmt \
|
|
&& make tidy
|
|
RUN make auth
|
|
|
|
FROM ubuntu
|
|
|
|
WORKDIR /openim
|
|
VOLUME ["/openim/logs","/openim/bin"]
|
|
|
|
COPY --from=build /openim/bin /openim/bin
|
|
COPY --from=build /openim/config /openim/config
|
|
|
|
EXPOSE 10160
|
|
CMD ["./bin/openim-rpc-auth","--port", "10160"]
|