mirror of
https://github.com/ONLYOFFICE/build_tools.git
synced 2026-02-10 20:45:38 +08:00
23 lines
659 B
Docker
23 lines
659 B
Docker
FROM ubuntu:20.04
|
|
|
|
ENV TZ=Etc/UTC
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
RUN apt-get -y update && \
|
|
apt-get -y install tar \
|
|
sudo \
|
|
wget
|
|
|
|
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"]
|