-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (29 loc) · 1.37 KB
/
Dockerfile
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
FROM continuumio/miniconda3:4.9.2
# Make RUN commands use `bash --login` (always source ~/.bashrc on each RUN)
SHELL ["/bin/bash", "--login", "-c"]
# install apt dependencies and update conda
RUN apt-get --allow-releaseinfo-change update && apt-get install git -y \
&& apt-get install -y nginx apt-transport-https ca-certificates wget unzip bzip2 libfontconfig1 \
&& update-ca-certificates \
&& apt-get -qq -y remove curl \
&& apt-get install -y g++ gcc \
&& apt-get -qq -y autoremove \
&& apt-get autoclean \
&& rm -rf /var/lib/apt/lists/* /var/log/dpkg.log
# Set up conda environment
ENV PATH /opt/conda/bin:$PATH
RUN conda config --set ssl_verify no
COPY ./environment.yml /opt/environment.yml
RUN conda env create -f /opt/environment.yml
COPY nginx.conf /etc/nginx/nginx.conf
SHELL ["conda", "run", "-n", "AGAVE", "/bin/bash", "-c"]
WORKDIR /opt/app
RUN echo "cloning AGAVE image" && git clone https://github.com/jhuapl-bio/AGAVE.git
WORKDIR /opt/app/AGAVE
RUN git checkout ui-updates
RUN npm install
COPY ./vue.config.js /opt/app/AGAVE/vue.config.js
RUN npm run build
RUN cp -r dist /AGAVE && useradd nginx && /etc/init.d/nginx restart && mkdir -p /AGAVE/data && mkdir -p /opt/app/AGAVE/output
# COPY ./controllers/src /opt/app/AGAVE/controllers/src
#To copy data into the appropriate location, run: cp output.json /opt/app/AGAVE/dist/data/default.json