File tree 3 files changed +18
-8
lines changed
assets/release/Dockerfiles
3 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 1
- FROM amd64/centos:7
1
+ # Use Python 3.8+ (required by V8's GN build system)
2
+ # See https://hub.docker.com/r/centos/python-38-centos7
3
+ FROM centos/python-38-centos7
2
4
COPY . /ngx_wasm_module
5
+ USER root
3
6
4
- RUN yum install -y epel-release && \
5
- yum update -y && \
7
+ RUN yum update -y && \
8
+ yum install -y epel-release && \
6
9
yum install -y centos-release-scl && \
7
10
yum install -y \
8
11
devtoolset-8 \
@@ -13,16 +16,16 @@ RUN yum install -y epel-release && \
13
16
cmake3 \
14
17
make \
15
18
gcc \
16
- python3 \
17
19
git \
18
20
glib2-devel \
19
21
perl \
20
22
perl-IPC-Cmd \
21
23
perl-Test-Simple
22
24
25
+ RUN ln -nfs $(which cmake3) /usr/bin/cmake
26
+
23
27
ENV RUSTUP_HOME=/usr/local/rustup CARGO_HOME=/usr/local/cargo
24
28
ENV PATH $CARGO_HOME/bin:$PATH
25
- RUN ln -nfs $(which cmake3) /usr/bin/cmake
26
29
RUN mkdir -p "$CARGO_HOME" && mkdir -p "$RUSTUP_HOME" && \
27
30
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable && \
28
31
chmod -R a=rwX $CARGO_HOME $RUSTUP_HOME
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* && \
13
13
libstdc++-devel \
14
14
libatomic \
15
15
perl \
16
- python3 \
16
+ python39 \
17
17
git \
18
18
glib2-devel
19
19
Original file line number Diff line number Diff line change @@ -2,13 +2,20 @@ FROM amd64/ubuntu:18.04
2
2
COPY . /ngx_wasm_module
3
3
4
4
ARG DEBIAN_FRONTEND=noninteractive
5
+
6
+ # Install Python 3.8+ (required by V8's GN build system)
7
+ RUN apt-get update && \
8
+ apt-get install -y software-properties-common && \
9
+ add-apt-repository -y ppa:deadsnakes/ppa && \
10
+ apt-get update && \
11
+ apt-get install -y python3.8 && \
12
+ ln -nfs $(which python3.8) /usr/bin/python3
13
+
5
14
RUN apt-get update && \
6
15
apt-get install -y --no-install-recommends \
7
16
ca-certificates \
8
17
build-essential \
9
18
ninja-build \
10
- python3 \
11
- cmake \
12
19
gcc-8 \
13
20
libstdc++-8-dev \
14
21
git \
You can’t perform that action at this time.
0 commit comments