tdlight-java-natives/Dockerfile

37 lines
1.4 KiB
Docker
Raw Normal View History

2021-05-04 23:02:03 +02:00
FROM debian:bionic
2021-03-15 18:37:35 +01:00
ARG REVISION
ARG GH_MATRIX_OS
ARG GH_MATRIX_ARCH
ARG IMPLEMENTATION_NAME
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-03-02 14:17:27 +01:00
RUN apt update && apt upgrade -y
2021-03-15 18:37:35 +01:00
RUN apt install -y sudo openjdk-11-jdk locales
#RUN apt install -y make git zlib1g-dev libssl-dev gperf cmake clang-10 libc++-10-dev libc++abi-10-dev ccache maven python3 python3-pip php7.4-cli openjdk-15-jdk
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
ENV JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
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 /bin/bash -c "export JAVA_HOME=\"/usr/lib/jvm/$(ls /usr/lib/jvm/ | grep openjdk | head -n 1)/\"; export JAVA_INCLUDE_PATH=\"$JAVA_HOME/include\"; source ./scripts/continuous-integration/github-workflows/setup-variables.sh; source ./scripts/continuous-integration/github-workflows/install-dependencies.sh; source ./scripts/continuous-integration/github-workflows/build-natives.sh"
#WORKDIR /usr/src/tdlight-java-natives/generated/
#RUN echo "aaaa" > test.txt
2021-03-02 14:17:27 +01:00
ENTRYPOINT [ "/bin/bash" ]