-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.template
34 lines (30 loc) · 1.21 KB
/
Dockerfile.template
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
#
# The `update.sh` script has generated this VICE-RStudio Dockerfile.
# Please do not try to modify it directly.
#
FROM {{base}}
ENV IRODS_ICOMMANDS="irods-icommands-4.1.10-ubuntu14-x86_64" \
LIB_SSL_LEGACY="libssl1.0.0_1.0.1t-1+deb8u8_amd64" \
PASSWORD="rstudio1" \
REDIRECT_URL="http://localhost/"
RUN set -e \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
{{common_os_packages}}
&& wget -q http://ftp.se.debian.org/debian/pool/main/o/openssl/${LIB_SSL_LEGACY}.deb \
&& dpkg -i ${LIB_SSL_LEGACY}.deb \
&& rm ${LIB_SSL_LEGACY}.deb \
&& wget -q https://files.renci.org/pub/irods/releases/4.1.10/ubuntu14/${IRODS_ICOMMANDS}.deb \
&& dpkg -i ${IRODS_ICOMMANDS}.deb \
&& rm ${IRODS_ICOMMANDS}.deb \
&& rm -rf /var/lib/apt/lists/* \
&& echo 'www-address=127.0.0.1' >> /etc/rstudio/rserver.conf \
&& echo '#!/usr/bin/with-contenv sh \
\nsed -e "s%{{REDIRECT_URL}}%${REDIRECT_URL}%" /nginx.conf.tmpl > /etc/nginx/nginx.conf' \
> /etc/cont-init.d/setupreverseproxy \
&& mkdir -p /etc/services.d/nginx \
&& echo '#!/usr/bin/with-contenv sh \
\nnginx' \
> /etc/services.d/nginx/run
COPY nginx.conf.tmpl /nginx.conf.tmpl
CMD ["/init"]