18 Star 79 Fork 32

Gitee 极速下载/OverVue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/TeamOverVue/OverVue
克隆/下载
Dockerfile-WSL 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
Megan Nadkarni 提交于 2022-03-10 15:21 +08:00 . rename WSL Dockerfile
FROM node:16.14
RUN apt-get update && apt-get install \
git libx11-xcb1 libxss1 libxcb-dri3-0 libgconf2-dev libxtst6 \
xvfb dbus-x11 libnss3 libudev-dev libatk-bridge2.0-0 libgtk-3-0 \
libxss1 libasound2 libdrm2 libgtkextra-dev libgbm1 \
-yq --no-install-suggests --no-install-recommends \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /OverVue
COPY . .
RUN chown -R node /OverVue
RUN npm i -g @quasar/cli
USER node
RUN npm install
USER root
RUN chown root /OverVue/node_modules/electron/dist/chrome-sandbox
RUN chmod 4755 /OverVue/node_modules/electron/dist/chrome-sandbox
EXPOSE 3000
USER node
CMD bash
# IN YOUR WSL 2 TERMINAL:
# export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
# export LIBGL_ALWAYS_INDIRECT=1
#
# MUST BE RUNNING SOME XSERVER SUCH AS VcXsrv OR OTHER
#
# RUN WITH:
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -v`pwd:/app --rm -it <yourimagename> bash
#
# INSIDE CONTAINER:
# quasar dev -m electron -- --no-sandbox
#
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/OverVue.git
git@gitee.com:mirrors/OverVue.git
mirrors
OverVue
OverVue
master

搜索帮助