-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (23 loc) · 1.2 KB
/
Dockerfile
File metadata and controls
26 lines (23 loc) · 1.2 KB
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
FROM ghcr.io/geocompx/suggests
# od2net R package: https://urban-analytics-technology-platform.github.io/od2net/r/
RUN R -e "remotes::install_github('a-b-street/od2net', subdir = 'r', upgrade = TRUE, dependencies = TRUE)"
# robinlovelace/simodels:
RUN R -e "remotes::install_github('robinlovelace/simodels', upgrade = TRUE, dependencies = TRUE)"
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y \
&& export PATH="$HOME/.cargo/bin:$PATH" \
&& echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.profile \
# Also make cargo available and rustc available with ln -s:
&& ln -s /root/.cargo/bin/cargo /usr/local/bin/cargo \
&& ln -s /root/.cargo/bin/rustc /usr/local/bin/rustc \
&& cargo install --locked --git https://github.com/Urban-Analytics-Technology-Platform/od2net \
&& cd /tmp \
&& git clone https://github.com/felt/tippecanoe.git \
&& cd tippecanoe \
&& make -j \
&& sudo make install \
&& tippecanoe --version \
&& echo "deb http://archive.ubuntu.com/ubuntu/ jammy main restricted" >> /etc/apt/sources.list \
&& apt-get update \
&& sudo apt-get install -y osmium-tool
# Ensure od2net is available in the PATH:
RUN ln -s /root/.cargo/bin/od2net /usr/local/bin/od2net