diff --git a/Dockerfile b/Dockerfile index d0abcdd..94d3269 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang as builder +FROM golang:bullseye as builder ADD . /src RUN cd /src && make linux_amd64 @@ -12,4 +12,4 @@ ENV TIMEOUT 60 WORKDIR /app COPY --from=builder /src/build/servicenow-instance-wakeup-linux-amd64 /app/servicenow-instance-wakeup RUN chmod a+x /app/servicenow-instance-wakeup -ENTRYPOINT /app/servicenow-instance-wakeup -headless=$HEADLESS -username=$USERNAME -password=$PASSWORD -debug=$DEBUG -timeout=$TIMEOUT \ No newline at end of file +ENTRYPOINT /app/servicenow-instance-wakeup -headless=$HEADLESS -username=$USERNAME -password=$PASSWORD -debug=$DEBUG -timeout=$TIMEOUT diff --git a/servicenow-instance-wakeup.go b/servicenow-instance-wakeup.go index 8a3ca45..c3eae3a 100644 --- a/servicenow-instance-wakeup.go +++ b/servicenow-instance-wakeup.go @@ -49,11 +49,11 @@ func main() { os.Exit(1) } - opts := []chromedp.ExecAllocatorOption{ + opts := append(chromedp.DefaultExecAllocatorOptions[:], chromedp.NoFirstRun, chromedp.NoDefaultBrowserCheck, chromedp.DisableGPU, - } + ) log.Printf("Starting the app with debug=%t/headless=%t/account=%s", configuration.Debug, configuration.ChromeHeadless, configuration.Username)