19 Star 79 Fork 32

Gitee 极速下载/OverVue

加入 Gitee
與超過 1200 萬 開發者一起發現、參與優秀開源項目,私有倉庫也完全免費 :)
免費加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/TeamOverVue/OverVue
克隆/下載
Dockerfile-Mac 783 Bytes
一鍵複製 編輯 原始數據 按行查看 歷史
Megan Nadkarni 提交於 2022-03-09 23:22 . 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/OverVue.git
git@gitee.com:mirrors/OverVue.git
mirrors
OverVue
OverVue
master

搜索幫助

0d507c66 1850385 C8b1a773 1850385