From 4a399c3227422a5c03a351beaa07fd6009057298 Mon Sep 17 00:00:00 2001 From: Francis Date: Thu, 30 Sep 2021 15:45:37 +0200 Subject: [PATCH] copy the transport-tools binaries in the container --- transport-site/Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/transport-site/Dockerfile b/transport-site/Dockerfile index f3592e8..b159b79 100644 --- a/transport-site/Dockerfile +++ b/transport-site/Dockerfile @@ -10,6 +10,10 @@ # - https://github.com/elixir-lang/elixir/releases # - https://github.com/erlang/otp/releases # + +# We are interested in the binaries compiled on that container: +FROM ghcr.io/etalab/transport-tools:master as transport-tools + FROM hexpm/elixir:1.12.2-erlang-24.0.4-ubuntu-focal-20210325 ARG DEBIAN_FRONTEND=noninteractive @@ -41,3 +45,8 @@ RUN npm install -g yarn # Install app dependencies RUN mix local.hex --force RUN mix local.rebar --force + +RUN mkdir /transport-tools + +COPY --from=transport-tools /usr/local/bin/gtfs-geojson ./transport-tools +RUN chmod +x /transport-tools/gtfs-geojson