FROM emscripten/emsdk:latest as build # Used to invalidate layer cache but not mount cache # See https://github.com/moby/moby/issues/41715#issuecomment-733976493 ARG UNIQUEKEY 1 RUN apt update RUN apt install -y git ccache autoconf automake libtool cmake pkg-config RUN <> /emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake EOF ENV VCPKG_DEFAULT_BINARY_CACHE /cache/vcpkg RUN --mount=type=cache,target=/cache <