Update the docker images to run as yuzu user (UID 1027)

This commit is contained in:
James Rowe 2020-05-07 20:22:08 -06:00
parent a222fcd7a7
commit 2f78410b2b
5 changed files with 15 additions and 11 deletions

View file

@ -1,6 +1,8 @@
FROM ubuntu:20.04
MAINTAINER yuzu
RUN useradd -m -s /bin/bash yuzu && \
# Create a user account yuzu (UID 1027) that the container will run as
RUN useradd -m -u 1027 -s /bin/bash yuzu && \
apt-get update && apt-get -y full-upgrade && \
apt-get install -y git clang-format-6.0 && \
apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt /var/lib/dpkg /var/lib/cache /var/lib/log
USER 1027