mirror of
https://git.suyu.dev/suyu/build-environments.git
synced 2026-03-26 08:02:58 +00:00
Update the docker images to run as yuzu user (UID 1027)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
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 && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y full-upgrade && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
|
||||
build-essential \
|
||||
@@ -25,7 +26,7 @@ RUN useradd -m -s /bin/bash yuzu && \
|
||||
ninja-build && \
|
||||
pip3 install conan && \
|
||||
apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt /var/lib/dpkg /var/lib/cache /var/lib/log
|
||||
USER yuzu
|
||||
USER 1027
|
||||
RUN conan install catch2/2.11.0@ -s compiler.libcxx=libstdc++11 --build=missing && \
|
||||
conan install fmt/6.2.0@ -s compiler.libcxx=libstdc++11 --build=missing && \
|
||||
conan install nlohmann_json/3.7.3@ -s compiler.libcxx=libstdc++11 --build=missing
|
||||
|
||||
Reference in New Issue
Block a user