mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 07:37:39 +00:00
feat(docker): add docker and publish images to ghcr (#411)
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user