diff --git a/Dockerfile b/Dockerfile index 0f0abcf..aef53e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,25 +1,23 @@ -FROM alpine:3.16.0 as build +FROM alpine:3.22.0 as build RUN apk --no-cache add alpine-sdk bash clang cmake git -# For the time being lock the commit version until the new release. -ARG FLATBUFFERS_VERSION=b4647b +ARG FLATBUFFERS_VERSION=v25.2.10 ARG FLATCC_VERSION=v0.6.1 -RUN git clone https://github.com/google/flatbuffers && \ +RUN git clone --depth 1 --branch $FLATBUFFERS_VERSION https://github.com/google/flatbuffers && \ cd /flatbuffers && \ - git reset --hard $FLATBUFFERS_VERSION && \ CC=/usr/bin/clang \ CXX=/usr/bin/clang++ \ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release && \ make -RUN git clone --branch $FLATCC_VERSION https://github.com/dvidelabs/flatcc.git && \ +RUN git clone --depth 1 --branch $FLATCC_VERSION https://github.com/dvidelabs/flatcc.git && \ cd /flatcc && \ scripts/initbuild.sh make && \ scripts/build.sh -FROM alpine:3.16.0 +FROM alpine:3.22.0 # Required dependency for the binaries. RUN apk --no-cache add libstdc++