This commit is contained in:
Baoshuo Ren 2022-09-19 15:04:45 +08:00
parent a1b48afe53
commit 967b170ef4
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -2,9 +2,6 @@ FROM ubuntu:20.04
ARG CLONE_ADDFLAG ARG CLONE_ADDFLAG
ADD . /opt/uoj
WORKDIR /opt/uoj
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
RUN dpkg -s gnupg 2>/dev/null || (apt-get update && apt-get install -y gnupg) &&\ RUN dpkg -s gnupg 2>/dev/null || (apt-get update && apt-get install -y gnupg) &&\
echo "deb http://ppa.launchpad.net/stesie/libv8/ubuntu bionic main" | tee /etc/apt/sources.list.d/stesie-libv8.list && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D858A0DF &&\ echo "deb http://ppa.launchpad.net/stesie/libv8/ubuntu bionic main" | tee /etc/apt/sources.list.d/stesie-libv8.list && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D858A0DF &&\
@ -13,6 +10,9 @@ yes | pecl install yaml &&\
git clone https://github.com/phpv8/v8js.git --depth=1 -b 2.1.2 /tmp/pear/download/v8js-master && cd /tmp/pear/download/v8js-master &&\ git clone https://github.com/phpv8/v8js.git --depth=1 -b 2.1.2 /tmp/pear/download/v8js-master && cd /tmp/pear/download/v8js-master &&\
phpize && ./configure --with-php-config=/usr/bin/php-config --with-v8js=/opt/libv8-7.5 && make install && cd - phpize && ./configure --with-php-config=/usr/bin/php-config --with-v8js=/opt/libv8-7.5 && make install && cd -
ADD . /opt/uoj
WORKDIR /opt/uoj
# Install environment and set startup script # Install environment and set startup script
RUN sh web/install.sh -p && echo "\ RUN sh web/install.sh -p && echo "\
#!/bin/sh\n\ #!/bin/sh\n\