-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
33 lines (24 loc) · 1 KB
/
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
33
FROM rocker/tidyverse:4.0.3 as builder
ARG EVALUATOR_VERSION
ENV BUILD_DATE=2020-11-27
LABEL org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.source="https://github.com/davidski/collector" \
org.opencontainers.image.documentation="https://collector.tidyrisk.org" \
maintainer="David F. Severski <davidski@deadheaven.com>" \
org.openctainers.image.authors="David F. Severski <davidski@deadheaven.com>"
# collector doesn't need shiny
#RUN export ADD=shiny && bash /etc/cont-init.d/add
COPY . /src/
WORKDIR /src
RUN apt-get update \
&& apt-get install -y zlib1g-dev libproj-dev libcairo2-dev libmagick++-dev \
&& install2.r --deps=TRUE remotes \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Silence pragma warnings for RcppEigen
# Reference https://github.com/kaskr/adcomp/issues/277#issuecomment-400191014
COPY /scripts/Makevars /root/.R/Makevars
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
VOLUME /data
EXPOSE 8787
EXPOSE 3838