forked from e-mission/e-mission-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.nomkl
46 lines (36 loc) · 1.21 KB
/
Dockerfile.nomkl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# python 3
FROM continuumio/miniconda3:4.5
MAINTAINER K. Shankari ([email protected])
# set working directory
WORKDIR /usr/src/app
# clone from repo
RUN git clone https://github.com/e-mission/e-mission-server.git .
# setup python environment.
RUN conda env update --name emission --file setup/environment36.nomkl.yml
RUN conda clean -t
RUN conda clean -p
# install nodejs, npm and bower
RUN apt-get update
RUN apt-get install -y build-essential
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get -y install nodejs
RUN npm install -g bower
WORKDIR /usr/src/app/webapp
RUN bower update --allow-root
WORKDIR /usr/src/app
# install nano and vim for editing
RUN apt-get -y install nano vim
# cleanup
RUN apt-get -y remove --purge build-essential
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#declare environment variables
ENV DB_HOST=''
ENV WEB_SERVER_HOST=''
#add start script.
# this is a redundant workdir setting, but it doesn't harm anything and might
# be useful if the other one is removed for some reason
WORKDIR /usr/src/app
ADD start_script.sh /usr/src/app/start_script.sh
RUN chmod u+x /usr/src/app/start_script.sh
EXPOSE 8080
CMD ["/bin/bash", "/usr/src/app/start_script.sh"]