Older/Dockerfiles/ubuntu1604.dockerfile
luocai 949f84718b
Some checks failed
Deploy / PullDocker (push) Successful in 3s
Deploy / Build (push) Successful in 4m43s
Deploy Docker Images / Docusaurus build and Server deploy (push) Failing after 3m6s
add dockerfiles.
2024-11-01 10:03:07 +08:00

48 lines
2.5 KiB
Docker

FROM ubuntu:16.04
LABEL maintainer="amass <168062547@qq.com>"
ENV DEBIAN_FRONTEND=noninteractive
RUN sed -i "s@http://.*archive.ubuntu.com@http://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list \
&& sed -i "s@http://.*security.ubuntu.com@http://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y apt-transport-https software-properties-common gcc g++ cmake ninja-build pkg-config openssh-server git nano \
ca-certificates wget curl rsync lsb-release ubuntu-keyring gnupg2 libssl-dev gettext jq qt5-default \
&& install -m 0755 -d /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
&& wget -O - https://openresty.org/package/pubkey.gpg | gpg --dearmor -o /usr/share/keyrings/openresty.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/openresty.gpg] http://openresty.org/package/ubuntu $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/openresty.list > /dev/null \
&& apt-get update \
&& apt-get install -y docker-ce-cli openresty nodejs
RUN git config --global core.quotepath false \
&& git config --global user.email "168062547@qq.com" \
&& git config --global user.name "amass"
RUN mkdir /var/run/sshd \
&& sed -i 's/#Port 22/Port 1022/' /etc/ssh/sshd_config \
&& sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config \
&& mkdir -p /root/.ssh \
&& wget https://frp-by1.wwvvww.cn:44048/s/id_ed25519/download -O /root/.ssh/authorized_keys \
&& chmod 600 /root/.ssh/authorized_keys && chown root:root /root/.ssh/authorized_keys
EXPOSE 1022
RUN cd /root \
&& wget https://frp-by1.wwvvww.cn:44048/s/boost_1_86_0/download -O boost_1_86_0.tar.gz \
&& tar xvf boost_1_86_0.tar.gz > /dev/null \
&& cd /root/boost_1_86_0 \
&& ./bootstrap.sh --prefix=/opt/Libraries/boost_1_86_0 \
&& ./b2 install -q --prefix=/opt/Libraries/boost_1_86_0 threading=multi link=shared runtime-link=shared variant=release cxxstd=11 cxxflags=-fPIC cflags=-fPIC \
&& rm -fr /root/boost_1_86_0*
ENV LD_LIBRARY_PATH=/opt/Libraries/boost_1_86_0/lib:$LD_LIBRARY_PATH
CMD ["service", "ssh", "start", "-D"]
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
ENV TERM=xterm-256color
# docker build --progress=tty -f ubuntu1604.dockerfile -t frp-by1.wwvvww.cn:45288/ubuntu_dev:16.04 .
# docker push frp-by1.wwvvww.cn:45288/ubuntu_dev:16.04