-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
25 lines (18 loc) · 946 Bytes
/
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
FROM rocker/rstudio:3.5.2
RUN apt-get update \
&& apt-get install -y lsb wget apt-transport-https python2.7 python-requests curl supervisor nginx gnupg2
RUN wget -qO - https://packages.irods.org/irods-signing-key.asc | apt-key add - \
&& echo "deb [arch=amd64] https://packages.irods.org/apt/ xenial main" > /etc/apt/sources.list.d/renci-irods.list \
&& apt-get update \
&& apt-get install -y irods-icommands
ADD https://github.com/hairyhenderson/gomplate/releases/download/v2.5.0/gomplate_linux-amd64 /usr/bin/gomplate
RUN chmod a+x /usr/bin/gomplate
COPY run.sh /usr/local/bin/run.sh
COPY nginx.conf.tmpl /nginx.conf.tmpl
COPY rserver.conf /etc/rstudio/rserver.conf
COPY supervisor-nginx.conf /etc/supervisor/conf.d/nginx.conf
COPY supervisor-rstudio.conf /etc/supervisor/conf.d/rstudio.conf
ENV REDIRECT_URL "http://localhost"
ENV PASSWORD "rstudio1"
RUN bash /etc/cont-init.d/userconf
ENTRYPOINT ["/usr/local/bin/run.sh"]