mirror of
https://github.com/ONLYOFFICE/build_tools.git
synced 2025-12-22 09:07:07 +00:00
34 lines
1.2 KiB
Docker
34 lines
1.2 KiB
Docker
FROM ubuntu:20.04
|
|
|
|
ENV TZ=Etc/UTC
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
RUN echo 'keyboard-configuration keyboard-configuration/layoutcode string us' | debconf-set-selections && \
|
|
echo 'keyboard-configuration keyboard-configuration/modelcode string pc105' | debconf-set-selections
|
|
|
|
RUN apt-get -y update && \
|
|
apt-get -y install tar \
|
|
sudo \
|
|
wget
|
|
|
|
RUN wget https://github.com/Kitware/CMake/releases/download/v3.30.0/cmake-3.30.0-linux-x86_64.tar.gz && \
|
|
tar -xzf cmake-3.30.0-linux-x86_64.tar.gz -C /opt && \
|
|
ln -s /opt/cmake-3.30.0-linux-x86_64/bin/cmake /usr/local/bin/cmake && \
|
|
ln -s /opt/cmake-3.30.0-linux-x86_64/bin/ctest /usr/local/bin/ctest && \
|
|
rm cmake-3.30.0-linux-x86_64.tar.gz
|
|
|
|
ADD . /build_tools
|
|
WORKDIR /build_tools
|
|
|
|
RUN mkdir -p /opt/python3 && \
|
|
wget -P /opt/python3/ https://github.com/ONLYOFFICE-data/build_tools_data/raw/refs/heads/master/python/python3.tar.gz && \
|
|
tar -xzf /opt/python3/python3.tar.gz -C /opt/python3 --strip-components=1
|
|
|
|
ENV PATH="/opt/python3/bin:${PATH}"
|
|
|
|
RUN ln -s /opt/python3/bin/python3.10 /usr/bin/python
|
|
|
|
CMD ["sh", "-c", "cd tools/linux && python3 ./automate.py"]
|