18 Star 79 Fork 32

Gitee 极速下载/OverVue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/TeamOverVue/OverVue
克隆/下载
Dockerfile-Mac 783 Bytes
一键复制 编辑 原始数据 按行查看 历史
Megan Nadkarni 提交于 2022-03-10 15:22 +08:00 . mac dockerfile node version update
FROM node:16.14
# install electron dependencies or more if your library has other dependencies
RUN apt-get update && apt-get install \
git libx11-xcb1 libxcb-dri3-0 libxtst6 libnss3 libatk-bridge2.0-0 libgtk-3-0 libxss1 libasound2 \
-yq --no-install-suggests --no-install-recommends \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# copy the source into /app
WORKDIR /app
COPY . .
RUN chown -R node /app
# install node modules and perform an electron rebuild
USER node
RUN npm install
# Electron needs root for sand boxing
# see https://github.com/electron/electron/issues/17972
USER root
RUN chown root /app/node_modules/electron/dist/chrome-sandbox
RUN chmod 4755 /app/node_modules/electron/dist/chrome-sandbox
# Electron doesn't like to run as root
USER node
CMD bash
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/OverVue.git
git@gitee.com:mirrors/OverVue.git
mirrors
OverVue
OverVue
master

搜索帮助