mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore(dogfood): add Google Chrome to dogfood image (#23063)
Install Google Chrome stable directly from `dl.google.com`. Ubuntu 22.04 ships `chromium-browser` as a snap-only package, which does not work in Docker containers. ```dockerfile RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \\ apt-get install --yes ./google-chrome-stable_current_amd64.deb && \\ rm google-chrome-stable_current_amd64.deb ``` Verified in a running dogfood workspace: ``` $ google-chrome --version Google Chrome 146.0.7680.75 ```
This commit is contained in:
@@ -211,6 +211,13 @@ RUN sed -i 's|http://archive.ubuntu.com/ubuntu/|http://mirrors.edge.kernel.org/u
|
||||
# Configure FIPS-compliant policies
|
||||
update-crypto-policies --set FIPS
|
||||
|
||||
# Install Google Chrome directly from Google. Ubuntu 22.04 ships
|
||||
# chromium-browser as a snap-only package, which does not work in
|
||||
# Docker containers.
|
||||
RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
|
||||
apt-get install --yes ./google-chrome-stable_current_amd64.deb && \
|
||||
rm google-chrome-stable_current_amd64.deb
|
||||
|
||||
# Install Rust via rustup. Using rustup ensures we get a current stable
|
||||
# toolchain.
|
||||
ENV RUSTUP_HOME=/usr/local/rustup \
|
||||
|
||||
Reference in New Issue
Block a user