goind docker
This commit is contained in:
parent
88fbaa37a2
commit
fd28dc02f9
|
@ -0,0 +1,66 @@
|
|||
FROM rocker/r-ver:4.3.1
|
||||
|
||||
ENV S6_VERSION=v2.1.0.2
|
||||
ENV SHINY_SERVER_VERSION=latest
|
||||
ENV PANDOC_VERSION=default
|
||||
|
||||
|
||||
ARG BUILD_DATE
|
||||
ARG BUILD_VERSION
|
||||
ARG GIT_COMMIT
|
||||
ARG GIT_URL
|
||||
LABEL maintainer="PMF kontakt@blume-it.com"
|
||||
MAINTAINER "kontakt@blume-it.com"
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get upgrade -y
|
||||
|
||||
|
||||
RUN apt-get -y --no-install-recommends install \
|
||||
libcurl4-gnutls-dev \
|
||||
libgdal-dev \
|
||||
libproj-dev \
|
||||
libgeos-dev \
|
||||
libudunits2-dev \
|
||||
netcdf-bin \
|
||||
libssl-dev
|
||||
|
||||
|
||||
# shiny-server installation
|
||||
COPY ./arm64-docker/install_dependencies.sh /rocker_scripts/
|
||||
RUN chmod 777 /rocker_scripts/install_dependencies.sh
|
||||
RUN /rocker_scripts/install_dependencies.sh
|
||||
|
||||
|
||||
COPY ./arm64-docker/install_shiny_server.sh /rocker_scripts/
|
||||
RUN chmod 777 /rocker_scripts/install_shiny_server.sh
|
||||
RUN /rocker_scripts/install_shiny_server.sh
|
||||
|
||||
|
||||
#clean up
|
||||
RUN apt-get clean
|
||||
|
||||
|
||||
VOLUME [ "/data/" ]
|
||||
|
||||
# r packages
|
||||
RUN R -e 'install.packages("shiny")'
|
||||
|
||||
|
||||
# copy the app directory into the image
|
||||
COPY ./eprilog.r /
|
||||
|
||||
# copy status docker files
|
||||
COPY ./.status-docker_dockerfile /app/.status-docker
|
||||
|
||||
WORKDIR /
|
||||
|
||||
# expose port
|
||||
EXPOSE 3839
|
||||
|
||||
# run app
|
||||
CMD ["R", "-e", "shiny::runApp('/eprilog.r', host = '0.0.0.0', port = 3839)"]
|
||||
|
||||
|
||||
# Locally:
|
||||
# docker build -t localgarmin:arm64 -f Dockerfile_arm64 .
|
Loading…
Reference in New Issue