mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 17:28:41 +00:00
fix: aa5e3063dc
This commit is contained in:
parent
a1b48afe53
commit
967b170ef4
@ -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\
|
||||||
|
Loading…
Reference in New Issue
Block a user