Skip to content

Commit

Permalink
[ci] Make sure dev-image runs more commands as root
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Jun 19, 2023
1 parent 354d6b0 commit 2e346ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/dev-image/Dockerfile
@@ -1,6 +1,8 @@
# Used to create a development image for working on Selenium
FROM shs96c/selenium-remote-build:latest

USER root

RUN apt-get update -qqy && apt-get install -y wget curl gnupg2

# So we can install browsers later
Expand All @@ -22,7 +24,6 @@ RUN apt-get update -qqy && \
ADD https://github.com/bazelbuild/bazelisk/releases/download/v1.12.0/bazelisk-linux-amd64 /usr/bin/bazelisk
RUN chmod 755 /usr/bin/bazelisk && ln -sf /usr/bin/bazelisk /usr/bin/bazel

RUN useradd -ms /bin/bash dev
RUN chmod 777 /
USER dev
WORKDIR /home/dev
Expand Down

0 comments on commit 2e346ce

Please sign in to comment.