-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (28 loc) · 1.34 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
34
35
36
FROM rocker/r-ver:4.3.2
# install system dependencies
RUN apt-get update -qq && apt-get install -y \
curl \
git-core \
libssl-dev \
libcurl4-openssl-dev \
libxml2-dev \
libpq-dev \
libsodium-dev \
gnupg2
RUN R -e "install.packages('remotes')"
RUN R -e "remotes::install_github('merlinoa/ambiorix', ref = '2552c879865a639810347bb4a553ca328a1896ab')"
RUN R -e "remotes::install_version('dbplyr', version = '2.3.2', upgrade = 'never')"
RUN R -e "remotes::install_version('dplyr', version = '1.1.1', upgrade = 'never')"
RUN R -e "remotes::install_version('glue', version = '1.6.2', upgrade = 'never')"
RUN R -e "remotes::install_version('httr', version = '1.4.7', upgrade = 'never')"
RUN R -e "remotes::install_version('jsonlite', version = '1.8.7', upgrade = 'never')"
RUN R -e "remotes::install_version('pool', version = '1.0.1', upgrade = 'never', quiet = FALSE)"
RUN R -e "remotes::install_version('RPostgres', version = '1.4.5', upgrade = 'never', quiet = FALSE)"
RUN R -e "remotes::install_version('tibble', version = '3.2.1', upgrade = 'never', quiet = FALSE)"
RUN R -e "remotes::install_version('uuid', version = '1.1-1', upgrade = 'never', quiet = FALSE)"
RUN R -e "remotes::install_version('tidyr', version = '1.3.0', upgrade = 'never', quiet = FALSE)"
VOLUME /app
COPY ./app /app
WORKDIR /app
EXPOSE 8080
ENTRYPOINT ["Rscript", "./server.R"]