-
Notifications
You must be signed in to change notification settings - Fork 38
/
Dockerfile
32 lines (23 loc) · 956 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
26
27
28
29
30
31
32
FROM rocker/tidyverse:4.0.3 as builder
ARG EVALUATOR_VERSION
ENV BUILD_DATE=2020-11-27
ARG ADD=shiny
LABEL org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.source="https://github.com/davidski/evaluator" \
org.opencontainers.image.documentation="https://evaluator.tidyrisk.org" \
maintainer="David F. Severski <[email protected]>" \
org.openctainers.image.authors="David F. Severski <[email protected]>"
RUN /rocker_scripts/install_shiny_server.sh
COPY . /src/
WORKDIR /src
RUN apt-get update \
&& apt-get install -y zlib1g-dev libproj-dev libpng-dev libxml2-dev \
&& install2.r --deps=TRUE remotes \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY /scripts/create_templates.R /usr/local/bin/create_templates
COPY /scripts/run_analysis.R /usr/local/bin/run_analysis
VOLUME /data
EXPOSE 8787
EXPOSE 3838