feat(docker): add docker and publish images to ghcr (#411)

Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
VictorV
2020-10-09 14:42:29 -07:00
committed by GitHub
parent e1cae3ed71
commit c857985a6d
8 changed files with 147 additions and 54 deletions
+3
View File
@@ -118,6 +118,8 @@ const browser = {
open: envOrBoolean(process.env.OPEN_BROWSER)
};
const docker = envOrBoolean(process.env.DOCKER);
const logLevel = envOrString(process.env.LOG_LEVEL, 'info');
const notifications = {
@@ -225,6 +227,7 @@ const store = {
export const config = {
browser,
docker,
logLevel,
notifications,
nvidia,
+5
View File
@@ -35,6 +35,11 @@ async function main() {
args.push('--disable-setuid-sandbox');
}
// https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#tips
if (config.docker) {
args.push('--disable-dev-shm-usage');
}
// Add the address of the proxy server if defined
if (config.proxy.address) {
args.push(`--proxy-server=http://${config.proxy.address}:${config.proxy.port}`);