5 Unstar Star 17 Fork 3

illusion / wechat_web_devtools

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Dockerfile 1.19 KB
Copy Edit Web IDE Raw Blame History
炒饭 authored 2019-03-21 11:49 . chore: update docs
# canyoutle/wxdt
# 开发者工具各版本docker image
# Usage:
# docker run -P -p 6080:80 -v $PWD:/weapps canyoutle/wxdt
FROM dorowu/ubuntu-desktop-lxde-vnc:bionic
RUN sed -i 's#http://\(archive\|security\).ubuntu.com/#http://mirrors.aliyun.com/#' /etc/apt/sources.list \
&& cat /etc/apt/sources.list
RUN apt-get update \
&& apt-get install -y --no-install-recommends --allow-unauthenticated \
wget \
gpg-agent \
dbus \
libgconf-2-4 \
build-essential \
ca-certificates \
openssl \
gnupg2
ENV LANG C.UTF-8
ENV DISPLAY :1.0
ENV HOME /root
ENV PATH="/wxdt/bin:${PATH}"
RUN echo "Asia/Shanghai" > /etc/timezone
RUN dpkg-reconfigure -f noninteractive tzdata
COPY . /wxdt
# 将开发者工具加入supervisord
RUN echo "\n\
[program:wxdt]\n\
priority=25\n\
directory=/wxdt/bin/\n\
command=bash wxdt start\n\
stderr_logfile=/var/log/wxdt.err.log\n\
stdout_logfile=/var/log/wxdt.out.log\n\
" >> /etc/supervisor/conf.d/supervisord.conf
# 将 /startup.sh 转到后台运行
RUN sed -i \
-e s%'ln -s '%'ln -sf '% \
/startup.sh
# 安装开发者工具,然后删除下载的文件
RUN update_nwjs.sh \
&& rm -rf /tmp/wxdt_xsp
ENTRYPOINT [ "/wxdt/bin/docker-entrypoint.sh" ]

Comment ( 0 )

Sign in for post a comment

HTML
1
https://gitee.com/liushuai05/wechat_web_devtools.git
git@gitee.com:liushuai05/wechat_web_devtools.git
liushuai05
wechat_web_devtools
wechat_web_devtools
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542