mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-29 07:12:14 +08:00
21 lines
340 B
Docker
21 lines
340 B
Docker
FROM golang:1.18.0 as build
|
|
|
|
WORKDIR /openim
|
|
COPY . .
|
|
|
|
RUN make fmt \
|
|
&& make tidy
|
|
RUN make conversation
|
|
|
|
FROM ubuntu
|
|
|
|
WORKDIR /openim
|
|
VOLUME ["/openim/logs","/openim/bin"]
|
|
|
|
COPY --from=build /openim/bin /openim/bin
|
|
COPY --from=build /openim/config /openim/config
|
|
|
|
EXPOSE 10230
|
|
CMD ["./bin/openim-rpc-conversation","--port", "10230"]
|
|
|