devops: add yarn and git in the docker container (#3651)

This will help consuming docker image as an env for test execution.

Fixes #3529
This commit is contained in:
Andrey Lushnikov 2020-08-26 20:16:24 -07:00 committed by GitHub
parent 15ec87dbcc
commit 3ea3cf0373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,12 @@ RUN groupadd -r pwuser && useradd -r -g pwuser -G audio,video pwuser \
RUN apt-get update && apt-get install -y --no-install-recommends \
xvfb
# 9. Run everything after as non-privileged user.
# 9. Install git & yarn. These are very helpful in a docker image.
RUN apt-get update && apt-get install -y --no-install-recommends git && \
npm install -g yarn
# 10. Run everything after as non-privileged user.
USER pwuser
# === BAKE BROWSERS INTO IMAGE ===