From 71d4030721c6666489c70debf683541761a68d6c Mon Sep 17 00:00:00 2001 From: "K. Shankari" Date: Wed, 7 Sep 2022 12:07:22 -0700 Subject: [PATCH] Initial copy of the production Dockerfile This is currently a copy of the dev Dockerfile to set up as a baseline before we start changing it for production builds --- viz_scripts/docker/Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 viz_scripts/docker/Dockerfile diff --git a/viz_scripts/docker/Dockerfile b/viz_scripts/docker/Dockerfile new file mode 100644 index 00000000..9c07108f --- /dev/null +++ b/viz_scripts/docker/Dockerfile @@ -0,0 +1,19 @@ +# python 3 +FROM emission/e-mission-server.dev.server-only:4.0.0 +ARG SERVER_REPO=https://github.com/aGuttman/e-mission-server.git +ARG SERVER_BRANCH=dashboard-dependencies + +ADD environment36.dashboard.additions.yml / + +RUN bash -c "/clone_server.sh" +RUN /bin/bash -c "cd e-mission-server && source setup/activate.sh && conda env update --name emission --file setup/environment36.notebook.additions.yml" +RUN /bin/bash -c "cd e-mission-server && source setup/activate.sh && conda env update --name emission --file /environment36.dashboard.additions.yml" + +ADD start_notebook.sh /usr/src/app/start_notebook.sh +RUN chmod u+x /usr/src/app/start_notebook.sh + +ADD crontab /usr/src/app/crontab + +EXPOSE 8888 + +CMD ["/bin/bash", "/usr/src/app/start_notebook.sh"]