Skip to content
Snippets Groups Projects
Commit 71fe64ac authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

re-organise ARG

parent 0c089401
No related branches found
No related tags found
1 merge request!7re-organise ARG
Pipeline #102040 canceled
...@@ -3,8 +3,6 @@ FROM ubuntu:focal ...@@ -3,8 +3,6 @@ FROM ubuntu:focal
# define geographic location during R installation # define geographic location during R installation
ENV TZ=Etc/UTC ENV TZ=Etc/UTC
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
ARG SHINY_SERVER_VERSION=latest
ARG R_VERSION=latest
EXPOSE 3838 EXPOSE 3838
CMD ["shiny-server"] CMD ["shiny-server"]
...@@ -34,13 +32,17 @@ RUN apt-get update \ ...@@ -34,13 +32,17 @@ RUN apt-get update \
COPY ./scripts /opt/scripts COPY ./scripts /opt/scripts
ARG R_VERSION=latest
#install R, along with its dependencies #install R, along with its dependencies
RUN /opt/scripts/install_r_cran.sh RUN /opt/scripts/install_r_cran.sh
# test R in another layer # test R in another layer
RUN R -q -e "sessionInfo()" RUN R -q -e "sessionInfo()"
# Install R packages included Shiny, then install shiny server # Install R packages including Shiny
RUN Rscript /opt/scripts/install_r_packages.R RUN Rscript /opt/scripts/install_r_packages.R
# Install shiny server
ARG SHINY_SERVER_VERSION=latest
RUN /opt/scripts/install_shiny_server.sh RUN /opt/scripts/install_shiny_server.sh
# allows trafic from all ips # allows trafic from all ips
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment