2023-04-18 07:50:13 +00:00
|
|
|
FROM node:18-bullseye as webapp_builder
|
2021-10-18 13:52:17 +00:00
|
|
|
|
2022-03-17 12:35:50 +00:00
|
|
|
ARG CLEARML_WEB_GIT_URL=https://github.com/allegroai/clearml-web.git
|
|
|
|
|
2021-10-18 13:52:17 +00:00
|
|
|
USER root
|
|
|
|
WORKDIR /opt
|
|
|
|
|
2022-03-17 12:35:50 +00:00
|
|
|
RUN git clone ${CLEARML_WEB_GIT_URL} clearml-web
|
2021-10-18 13:52:17 +00:00
|
|
|
RUN mv clearml-web /opt/open-webapp
|
2021-10-19 07:06:51 +00:00
|
|
|
COPY --chmod=744 docker/build/internal_files/build_webapp.sh /tmp/internal_files/
|
2021-10-18 13:52:17 +00:00
|
|
|
RUN /bin/bash -c '/tmp/internal_files/build_webapp.sh'
|
|
|
|
|
2023-05-25 16:27:14 +00:00
|
|
|
FROM python:3.9-slim-bullseye
|
2021-10-19 07:06:51 +00:00
|
|
|
COPY --chmod=744 docker/build/internal_files/entrypoint.sh /opt/clearml/
|
2021-10-18 13:52:17 +00:00
|
|
|
COPY fileserver /opt/clearml/fileserver/
|
|
|
|
COPY apiserver /opt/clearml/apiserver/
|
|
|
|
|
2021-10-19 07:06:51 +00:00
|
|
|
COPY --chmod=744 docker/build/internal_files/final_image_preparation.sh /tmp/internal_files/
|
2021-10-18 13:52:17 +00:00
|
|
|
COPY docker/build/internal_files/clearml.conf.template /tmp/internal_files/
|
2022-03-22 15:21:58 +00:00
|
|
|
COPY docker/build/internal_files/clearml_subpath.conf.template /tmp/internal_files/
|
2021-10-18 13:52:17 +00:00
|
|
|
RUN /bin/bash -c '/tmp/internal_files/final_image_preparation.sh'
|
|
|
|
|
2023-04-18 07:50:13 +00:00
|
|
|
COPY --from=webapp_builder /opt/open-webapp/build /usr/share/nginx/html
|
2023-03-07 09:26:12 +00:00
|
|
|
COPY --from=webapp_builder /opt/open-webapp/dist/report-widgets /usr/share/nginx/widgets
|
2021-10-18 13:52:17 +00:00
|
|
|
|
|
|
|
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"]
|