5 Star 24 Fork 2

会PS的小码农 / wechat_web_devtools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.19 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
炒饭 提交于 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" ]
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

搜索帮助

14c37bed 8189591 565d56ea 8189591