Skip to content

Commit

Permalink
Initial copy of the production Dockerfile
Browse files Browse the repository at this point in the history
This is currently a copy of the dev Dockerfile to set up as a baseline before
we start changing it for production builds
  • Loading branch information
shankari committed Sep 7, 2022
1 parent 513e382 commit 71d4030
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions viz_scripts/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 71d4030

Please sign in to comment.