tdlight-java-natives/Dockerfile

41 lines
1.4 KiB
Docker
Raw Normal View History

ARG GH_MATRIX_SSL
FROM debian:buster as img_ssl1
ONBUILD ENV SSL_LIB_NAME=libssl1.1
FROM debian:bookworm as img_ssl3
ONBUILD ENV SSL_LIB_NAME=libssl3
FROM img_${GH_MATRIX_SSL} AS build
2021-03-15 18:37:35 +01:00
ARG REVISION
ARG GH_MATRIX_OS
ARG GH_MATRIX_ARCH
ARG GH_MATRIX_SSL
2021-03-15 18:37:35 +01:00
ARG IMPLEMENTATION_NAME
2022-03-19 19:26:56 +01:00
ARG CPU_CORES_NUM
2021-03-02 14:17:27 +01:00
ENV DEBIAN_FRONTEND noninteractive
2021-03-15 18:37:35 +01:00
ENV TZ=Europe/Kiev
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
2021-09-26 00:56:40 +02:00
ENV LANG "en_US.UTF-8"
ENV JAVA_TOOL_OPTIONS "-Dfile.encoding=UTF8"
ENV CROSS_BUILD_DEPS_DIR "/var/cache/crossbuild-deps"
2021-03-02 14:17:27 +01:00
ADD implementations /usr/src/tdlight-java-natives/implementations
ADD scripts /usr/src/tdlight-java-natives/scripts
ADD src /usr/src/tdlight-java-natives/src
2021-03-15 18:37:35 +01:00
WORKDIR /usr/src/tdlight-java-natives/
RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
--mount=target=/var/cache/apt,type=cache,sharing=locked \
--mount=target=/var/cache/crossbuild-deps,type=cache,sharing=locked \
/bin/bash /usr/src/tdlight-java-natives/scripts/continuous-integration/docker/install-dependencies.sh
RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
--mount=target=/var/cache/apt,type=cache,sharing=locked \
--mount=target=/var/cache/crossbuild-deps,type=cache,sharing=locked \
/bin/bash /usr/src/tdlight-java-natives/scripts/continuous-integration/docker/build-natives.sh
2021-03-15 18:37:35 +01:00
2021-03-02 14:17:27 +01:00
ENTRYPOINT [ "/bin/bash" ]