tiler docker

This commit is contained in:
core 2024-10-28 16:04:16 -04:00
parent e15acefa29
commit fa8f5d71df
Signed by: core
GPG Key ID: 9D0DAED5555DD0B4
2 changed files with 15 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
target

14
Dockerfile Normal file
View File

@ -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"]