mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-26 21:22:16 +08:00
feat: set more help and port set
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
parent
22df23cf8b
commit
c9df323da4
@ -44,16 +44,14 @@ FROM ghcr.io/openim-sigs/openim-ubuntu-image:latest
|
|||||||
|
|
||||||
WORKDIR /openim/openim-server
|
WORKDIR /openim/openim-server
|
||||||
|
|
||||||
COPY --from=builder /openim/openim-server/_output/bin/platforms /openim/openim-server/_output/bin/platforms/
|
COPY --from=builder /openim/openim-server/_output/bin/tools /openim/openim-server/_output/bin/tools/
|
||||||
COPY --from=builder /app/dist /app/dist
|
COPY --from=builder /openim/openim-server/dist /openim/openim-server/dist
|
||||||
|
|
||||||
ENV PORT 11001
|
ENV PORT 11001
|
||||||
ENV DISTPATH /app/dist
|
ENV DISTPATH /openim/openim-server/dist
|
||||||
|
|
||||||
EXPOSE $PORT
|
EXPOSE $PORT
|
||||||
|
|
||||||
RUN cp -r ${OPENIM_SERVER_BINDIR}/platforms/$(get_os)/$(get_arch)/openim-web /usr/bin/openim-web
|
RUN ln ${OPENIM_SERVER_BINDIR}/tools/$(get_os)/$(get_arch)/openim-web /usr/bin/openim-web
|
||||||
|
|
||||||
ENTRYPOINT ["bash", "-c", "openim-web -port $PORT"]
|
ENTRYPOINT ["bash", "-c", "openim-web -port $PORT -distPath $DISTPATH"]
|
||||||
|
|
||||||
CMD ["-distPath","/app/dist"]
|
|
||||||
Loading…
x
Reference in New Issue
Block a user