Skip to content

Instantly share code, notes, and snippets.

@vaibhavpandeyvpz
Created September 22, 2023 11:16
Show Gist options
  • Save vaibhavpandeyvpz/994fd49d6e095ee20c63f4d33981a4a3 to your computer and use it in GitHub Desktop.
Save vaibhavpandeyvpz/994fd49d6e095ee20c63f4d33981a4a3 to your computer and use it in GitHub Desktop.
Chromium's Docker image based on AlpineLinux
FROM alpine:3
RUN apk update && apk upgrade
RUN apk add --no-cache chromium chromium-chromedriver
RUN mkdir -p /usr/src/app \
&& adduser -D chromium \
&& chown -R chromium:chromium /usr/src/app
USER chromium
WORKDIR /usr/src/app
CMD ["chromedriver", "--allowed-ips=", "--allowed-origins=*"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment