Skip to content

Commit

Permalink
feat: set more help and port set
Browse files Browse the repository at this point in the history
Signed-off-by: Xinwei Xiong(cubxxw-openim) <[email protected]>
  • Loading branch information
cubxxw committed Sep 3, 2023
1 parent 80c985a commit 83917d1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions build/images/openim-tools/openim-web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,14 @@ FROM ghcr.io/openim-sigs/openim-ubuntu-image:latest

WORKDIR /openim/openim-server

COPY --from=builder /openim/openim-server/_output/bin/platforms /openim/openim-server/_output/bin/platforms/
COPY --from=builder /app/dist /app/dist
COPY --from=builder /openim/openim-server/_output/bin/tools /openim/openim-server/_output/bin/tools/
COPY --from=builder /openim/openim-server/dist /openim/openim-server/dist

ENV PORT 11001
ENV DISTPATH /app/dist
ENV DISTPATH /openim/openim-server/dist

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"]

CMD ["-distPath","/app/dist"]
ENTRYPOINT ["bash", "-c", "openim-web -port $PORT -distPath $DISTPATH"]

0 comments on commit 83917d1

Please sign in to comment.