Skip to content

Commit 2e346ce

Browse files
committed
[ci] Make sure dev-image runs more commands as root
1 parent 354d6b0 commit 2e346ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/dev-image/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Used to create a development image for working on Selenium
22
FROM shs96c/selenium-remote-build:latest
33

4+
USER root
5+
46
RUN apt-get update -qqy && apt-get install -y wget curl gnupg2
57

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

25-
RUN useradd -ms /bin/bash dev
2627
RUN chmod 777 /
2728
USER dev
2829
WORKDIR /home/dev

0 commit comments

Comments
 (0)