mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
add docker supports
This commit is contained in:
parent
ee9e3a893d
commit
038349048b
14
bin/wechat-devtools-docker
Executable file
14
bin/wechat-devtools-docker
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
xhost +
|
||||
|
||||
docker run \
|
||||
-t -i --rm \
|
||||
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
|
||||
-v $HOME/.Xauthority:/root/.Xauthority \
|
||||
-e DISPLAY=unix:0.0 \
|
||||
-e GDK_SCALE \
|
||||
-e GDK_DPI_SCALE \
|
||||
--privileged \
|
||||
wechat-devtools /opt/wechat/devtools/bin/docker-entrypoint
|
||||
|
52
docker/Dockerfile
Normal file
52
docker/Dockerfile
Normal file
@ -0,0 +1,52 @@
|
||||
FROM debian:buster
|
||||
LABEL maintainer="minun (minun@mewmew.cn)"
|
||||
|
||||
ENV LANG=C.UTF-8
|
||||
|
||||
# update repo sources
|
||||
RUN set -ex; \
|
||||
cp /etc/apt/sources.list /etc/apt/sources.list.bak; \
|
||||
echo "deb http://mirrors.aliyun.com/debian buster main" > /etc/apt/sources.list; \
|
||||
echo "deb http://mirrors.aliyun.com/debian buster-updates main" >> /etc/apt/sources.list; \
|
||||
apt-get clean; \
|
||||
dpkg --add-architecture i386; \
|
||||
apt-get update;
|
||||
|
||||
RUN set -ex; \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||
apt-utils \
|
||||
dbus-x11 \
|
||||
libasound2 \
|
||||
libatk1.0-0 \
|
||||
libatomic1 \
|
||||
libcanberra-gtk3-module \
|
||||
libgconf-2-4 \
|
||||
libgtk3.0 \
|
||||
libnss3 \
|
||||
libupower-glib3 \
|
||||
libxtst6 \
|
||||
libx11-6 \
|
||||
libx11-xcb1 \
|
||||
libxss1 \
|
||||
libxrandr2 \
|
||||
mesa-utils \
|
||||
ttf-wqy-microhei \
|
||||
upower \
|
||||
wine \
|
||||
wine32 \
|
||||
wine-binfmt \
|
||||
xserver-xorg-video-all;
|
||||
|
||||
ADD wechat-devtools-compact-1.03.2008270.tar.gz /opt/wechat/devtools
|
||||
|
||||
COPY docker-entrypoint /opt/wechat/devtools/bin/docker-entrypoint
|
||||
|
||||
# COPY spdlog.docker.node /opt/wechat/devtools/package.nw/node_modules/spdlog/build/Release/spdlog.node
|
||||
# COPY spdlog.docker.node /opt/wechat/devtools/package.nw/node_modules/spdlog-node/build/Release/spdlog.node
|
||||
|
||||
# RUN apt-get build-essential python libx11-dev pkg-config libxkbfile-dev
|
||||
# RUN useradd -m minun
|
||||
|
||||
# xhost +
|
||||
# docker run -t -i --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -v $HOME/.Xauthority:/root/.Xauthority wechat-devtools bash
|
||||
|
6
docker/docker-entrypoint
Executable file
6
docker/docker-entrypoint
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
/etc/init.d/dbus start &&
|
||||
|
||||
/opt/wechat/devtools/bin/wechat-devtools "$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user