Skip to content

Commit 9a98532

Browse files
committed
Upgrade nodejs to v12
1 parent cbd87c9 commit 9a98532

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ FROM ubuntu:16.04
33
COPY build/java_policy /etc
44

55
RUN buildDeps='software-properties-common git libtool cmake python-dev python3-pip python-pip libseccomp-dev' && \
6-
apt-get update && apt-get install -y nodejs python python3.5 python-pkg-resources python3-pkg-resources gcc g++ $buildDeps && \
6+
apt-get update && apt-get install -y curl python python3.5 python-pkg-resources python3-pkg-resources gcc g++ $buildDeps && \
77
add-apt-repository ppa:openjdk-r/ppa && apt-get update && apt-get install -y openjdk-8-jdk && \
8+
curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh && bash nodesource_setup.sh && \
9+
apt-get install -y nodejs && \
810
pip3 install --no-cache-dir psutil gunicorn flask requests && \
911
cd /tmp && git clone -b newnew --depth 1 https://github.com/QingdaoU/Judger && cd Judger && \
1012
mkdir build && cd build && cmake .. && make && make install && cd ../bindings/Python && python3 setup.py install && \

0 commit comments

Comments
 (0)