mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
update: docker file
This commit is contained in:
parent
3fa0694655
commit
eb441e1e9d
@ -1,13 +1,13 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
wechat_devtools:
|
wechat_devtools:
|
||||||
image: jiyecafe/wechat-devtools-build:v3
|
# image: jiyecafe/wechat-devtools-build:v3
|
||||||
# build:
|
build:
|
||||||
# context: ./docker
|
context: ./docker
|
||||||
# dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- .:/workspace
|
- .:/workspace
|
||||||
- ./cache/.npm:/root/.npm
|
# - ./cache/.npm:/root/.npm
|
||||||
environment:
|
environment:
|
||||||
- ACTION_MODE=${ACTION_MODE:-false}
|
- ACTION_MODE=${ACTION_MODE:-false}
|
||||||
# - https_proxy=${https_proxy:-}
|
# - https_proxy=${https_proxy:-}
|
||||||
|
@ -1,31 +1,23 @@
|
|||||||
FROM ubuntu:16.04
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
|
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
|
||||||
sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
|
sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
|
||||||
sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
|
sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
|
||||||
mkdir -p /build_temp/python36 /build_temp/nodejs && \
|
sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
|
||||||
|
mkdir -p /build_temp/nodejs && \
|
||||||
apt update && \
|
apt update && \
|
||||||
apt install -y binutils software-properties-common gcc g++ \
|
apt install -y binutils software-properties-common gcc g++ \
|
||||||
gconf2 libxkbfile-dev p7zip-full make libssh2-1-dev libkrb5-dev wget curl \
|
gconf2 libxkbfile-dev p7zip-full make libssh2-1-dev libkrb5-dev wget curl python python3 \
|
||||||
openssl pkg-config build-essential && \
|
openssl pkg-config build-essential && \
|
||||||
cd /build_temp/python36 && \
|
|
||||||
apt-get install -y aptitude &&\
|
|
||||||
aptitude -y install gcc make zlib1g-dev libffi-dev libssl-dev &&\
|
|
||||||
mkdir -p test && cd test &&\
|
|
||||||
wget http://npmmirror.com/mirrors/python/3.6.5/Python-3.6.5.tgz &&\
|
|
||||||
tar -xvf Python-3.6.5.tgz &&\
|
|
||||||
chmod -R +x Python-3.6.5 &&\
|
|
||||||
cd Python-3.6.5/ &&\
|
|
||||||
./configure &&\
|
|
||||||
aptitude -y install libffi-dev libssl-dev &&\
|
|
||||||
make && make install &&\
|
|
||||||
cd /build_temp/nodejs &&\
|
cd /build_temp/nodejs &&\
|
||||||
wget https://deb.nodesource.com/setup_16.x &&\
|
apt-get update && apt-get install -y ca-certificates curl gnupg
|
||||||
chmod +x setup_16.x &&\
|
|
||||||
./setup_16.x &&\
|
RUN mkdir -p /etc/apt/keyrings && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg &&\
|
||||||
apt-get install -y nodejs &&\
|
NODE_MAJOR=16 &&\
|
||||||
|
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list &&\
|
||||||
|
apt-get update && apt-get install nodejs -y &&\
|
||||||
rm -rf /build_temp && \
|
rm -rf /build_temp && \
|
||||||
apt install -y gosu && \
|
apt install -y gosu && \
|
||||||
gosu nobody true && \
|
gosu nobody true && \
|
||||||
|
@ -84,7 +84,7 @@ mkdir -p "${package_dir}/node_modules_tmp/node_modules"
|
|||||||
|
|
||||||
notice "install modules"
|
notice "install modules"
|
||||||
max_thread=$(cat /proc/cpuinfo| grep "processor"| wc -l)
|
max_thread=$(cat /proc/cpuinfo| grep "processor"| wc -l)
|
||||||
# export JOBS=$max_thread
|
export JOBS=$max_thread
|
||||||
(cd "${package_dir}/node_modules_tmp" && npm install \
|
(cd "${package_dir}/node_modules_tmp" && npm install \
|
||||||
extract-file-icon \
|
extract-file-icon \
|
||||||
native-keymap \
|
native-keymap \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user