-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
93 lines (82 loc) · 7.74 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
FROM rocker/r-ver:4.0.5
# DeGAUSS container metadata
ENV degauss_name="drivetime"
ENV degauss_version="1.3.0"
ENV degauss_description="distance and drive time to care sites"
ENV degauss_argument="care_site [default: none]"
# add OCI labels based on environment variables too
LABEL "org.degauss.name"="${degauss_name}"
LABEL "org.degauss.version"="${degauss_version}"
LABEL "org.degauss.description"="${degauss_description}"
LABEL "org.degauss.argument"="${degauss_argument}"
RUN R --quiet -e "install.packages('remotes', repos = c(CRAN = 'https://packagemanager.rstudio.com/all/__linux__/focal/latest'))"
RUN R --quiet -e "remotes::install_github('rstudio/[email protected]')"
WORKDIR /app
RUN apt-get update \
&& apt-get install -yqq --no-install-recommends \
libgdal-dev \
libgeos-dev \
libudunits2-dev \
libproj-dev \
&& apt-get clean
COPY renv.lock .
RUN R --quiet -e "renv::restore(repos = c(CRAN = 'https://packagemanager.rstudio.com/all/__linux__/focal/latest'))"
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/center_addresses.csv center_addresses.csv
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/al_isochrones.rds isochrones/al_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/arkansas_isochrones.rds isochrones/arkansas_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/atlanta_isochrones.rds isochrones/atlanta_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/bch_isochrones.rds isochrones/bch_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/cc_isochrones.rds isochrones/cc_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/cchmc_isochrones.rds isochrones/cchmc_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/chla_isochrones.rds isochrones/chla_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/chnola_isochrones.rds isochrones/chnola_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/chop_isochrones.rds isochrones/chop_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/cnmc_isochrones.rds isochrones/cnmc_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/cohen_isochrones.rds isochrones/cohen_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/colorado_isochrones.rds isochrones/colorado_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/cook_isochrones.rds isochrones/cook_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/dallas_isochrones.rds isochrones/dallas_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/dell_isochrones.rds isochrones/dell_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/dimaggio_isochrones.rds isochrones/dimaggio_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/dupont_isochrones.rds isochrones/dupont_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/emory_isochrones.rds isochrones/emory_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/expo_isochrones.rds isochrones/expo_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/jhu_isochrones.rds isochrones/jhu_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/lac_isochrones.rds isochrones/lac_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/lcclp_isochrones.rds isochrones/lcclp_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/lccu_isochrones.rds isochrones/lccu_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/levine_isochrones.rds isochrones/levine_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/liberty_isochrones.rds isochrones/liberty_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/maine_isochrones.rds isochrones/maine_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/mcw_isochrones.rds isochrones/mcw_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/mehc_isochrones.rds isochrones/mehc_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/mercy_isochrones.rds isochrones/mercy_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/methodist_isochrones.rds isochrones/methodist_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/minn_isochrones.rds isochrones/minn_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/musc_isochrones.rds isochrones/musc_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/nat_isochrones.rds isochrones/nat_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/nicklaus_isochrones.rds isochrones/nicklaus_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/nwu_isochrones.rds isochrones/nwu_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/ohsu_isochrones.rds isochrones/ohsu_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/omaha_isochrones.rds isochrones/omaha_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/packard_isochrones.rds isochrones/packard_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/palmer_isochrones.rds isochrones/palmer_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/primary_isochrones.rds isochrones/primary_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/rady_isochrones.rds isochrones/rady_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/rainbow_isochrones.rds isochrones/rainbow_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/riley_isochrones.rds isochrones/riley_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/seattle_isochrones.rds isochrones/seattle_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/stj_isochrones.rds isochrones/stj_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/stl_isochrones.rds isochrones/stl_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/texas_isochrones.rds isochrones/texas_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/toronto_isochrones.rds isochrones/toronto_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/ucla_isochrones.rds isochrones/ucla_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/ucsf_isochrones.rds isochrones/ucsf_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/umich_isochrones.rds isochrones/umich_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/unc_isochrones.rds isochrones/unc_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/upmc_isochrones.rds isochrones/upmc_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/uva_isochrones.rds isochrones/uva_isochrones.rds
ADD https://geomarker.s3-us-east-2.amazonaws.com/drivetime/isochrones/vandy_isochrones.rds isochrones/vandy_isochrones.rds
COPY entrypoint.R .
WORKDIR /tmp
ENTRYPOINT ["/app/entrypoint.R"]