commit | author | age
|
d1e1f5
|
1 |
FROM debian:bullseye |
JK |
2 |
|
|
3 |
RUN apt-get update \ |
|
4 |
&& apt-get -y dist-upgrade \ |
|
5 |
&& apt-get -y install --no-install-suggests --no-install-recommends \ |
|
6 |
gdal-bin python3-psycopg2 python3-requests python3-yaml |
|
7 |
|
|
8 |
RUN groupadd -r -g 500 map \ |
|
9 |
&& useradd -r -u 500 -g 500 map \ |
|
10 |
&& mkdir -p /home/map \ |
|
11 |
&& chown map:map /home/map |
|
12 |
|
|
13 |
VOLUME /home/map/carto |
|
14 |
|
|
15 |
USER map |
|
16 |
WORKDIR /home/map |
|
17 |
|
|
18 |
ADD get-external-data.py . |
|
19 |
CMD PGPASSWORD="${POSTGRES_PASSWORD}" ./get-external-data.py \ |
|
20 |
-v \ |
|
21 |
-c carto/repo/external-data.yml \ |
|
22 |
-D carto/data \ |
|
23 |
-H postgres \ |
|
24 |
-U "${POSTGRES_USER}" \ |
|
25 |
-d "${POSTGRES_USER}" |