mirror of
https://github.com/clearml/clearml-server
synced 2025-02-07 13:33:42 +00:00
* add server root url * [Feature Request] Add proxy_pass for root url other than / * [Feature Request] Add proxy_pass for root url other than / * add support for web sub path * add support for web sub path * use default conf instead of created a custom one * code reivew: move cp command in if block * Add commented env var in the docker-compose file Co-authored-by: Zied ANDOLSI <zandolsi@prophesee.ai>
39 lines
1.2 KiB
Docker
39 lines
1.2 KiB
Docker
FROM centos/nodejs-12-centos7 AS webapp
|
|
|
|
ARG CLEARML_WEB_GIT_URL=https://github.com/allegroai/clearml-web.git
|
|
|
|
USER root
|
|
WORKDIR /opt
|
|
|
|
RUN git clone ${CLEARML_WEB_GIT_URL} clearml-web
|
|
RUN mv clearml-web /opt/open-webapp
|
|
COPY --chmod=744 docker/build/internal_files/build_webapp.sh /tmp/internal_files/
|
|
RUN /bin/bash -c '/tmp/internal_files/build_webapp.sh'
|
|
|
|
FROM centos:7 AS staging_image
|
|
COPY --chmod=744 docker/build/internal_files/entrypoint.sh /opt/clearml/
|
|
COPY fileserver /opt/clearml/fileserver/
|
|
COPY apiserver /opt/clearml/apiserver/
|
|
|
|
FROM centos:7
|
|
COPY --from=staging_image /opt/clearml/ /opt/clearml/
|
|
|
|
COPY --chmod=744 docker/build/internal_files/final_image_preparation.sh /tmp/internal_files/
|
|
COPY docker/build/internal_files/clearml.conf.template /tmp/internal_files/
|
|
COPY docker/build/internal_files/clearml_subpath.conf.template /tmp/internal_files/
|
|
RUN /bin/bash -c '/tmp/internal_files/final_image_preparation.sh'
|
|
|
|
COPY --from=webapp /opt/open-webapp/build /usr/share/nginx/html
|
|
|
|
EXPOSE 8080
|
|
EXPOSE 8008
|
|
EXPOSE 8081
|
|
|
|
ARG VERSION
|
|
ARG BUILD
|
|
ENV CLEARML_SERVER_VERSION=${VERSION}
|
|
ENV CLEARML_SERVER_BUILD=${BUILD}
|
|
|
|
WORKDIR /opt/clearml/
|
|
ENTRYPOINT ["/opt/clearml/entrypoint.sh"]
|