From fa8f5d71dfaf8a6cb45fdf40c4f165514b8b2270 Mon Sep 17 00:00:00 2001 From: core Date: Mon, 28 Oct 2024 16:04:16 -0400 Subject: [PATCH] tiler docker --- .dockerignore | 1 + Dockerfile | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..eb5a316 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +target diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dcded7b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM rust + +FROM rust AS deps +RUN apt-get update && apt-get install -y lld gfortran build-essential cmake ninja-build libaec-dev libclang-dev + +RUN git clone https://github.com/ecmwf/eccodes && cd eccodes && mkdir build && cd build && cmake .. -DENABLE_PNG=On -G Ninja && ninja && ctest && ninja install + +FROM deps AS build +COPY . . +RUN RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo build --release + +EXPOSE 8080/tcp + +ENTRYPOINT ["./target/release/wxbox-tiler"]