From a0e12a0d9ada3dd2ecbd9663f441e33ef6f85323 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Sat, 17 Jul 2021 04:44:55 -0400 Subject: [PATCH 1/2] liftinstall: Add initial liftinstall container --- linux-liftinstall/Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 linux-liftinstall/Dockerfile diff --git a/linux-liftinstall/Dockerfile b/linux-liftinstall/Dockerfile new file mode 100644 index 0000000..f197bc3 --- /dev/null +++ b/linux-liftinstall/Dockerfile @@ -0,0 +1,22 @@ +FROM debian:stable +MAINTAINER yuzu + +# Create a user account yuzu (UID 1027) that the container will run as +RUN apt-get update && apt-get -y full-upgrade && \ + apt-get install --no-install-recommends -y \ + ca-certificates \ + curl \ + gnupg \ + apt-utils && \ + curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg -o /tmp/pubkey.gpg && \ + apt-key add /tmp/pubkey.gpg && \ + echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list && \ + apt-get update && apt-get install --no-install-recommends -y \ + libwebkit2gtk-4.0-dev \ + libssl-dev \ + cargo \ + nodejs \ + yarn && \ + apt-get clean autoclean && \ + apt-get autoremove --yes && \ + rm -rf /var/lib/apt /var/lib/dpkg /var/lib/cache /var/lib/log From 6ae86b32912bd6783cac933e0d1435a4db03baf4 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Sat, 17 Jul 2021 17:55:02 -0400 Subject: [PATCH 2/2] liftinstall: Reorder packages and use yuzu user Also targets debian:buster instead of the ambiguous stable version. --- linux-liftinstall/Dockerfile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/linux-liftinstall/Dockerfile b/linux-liftinstall/Dockerfile index f197bc3..0ea1adf 100644 --- a/linux-liftinstall/Dockerfile +++ b/linux-liftinstall/Dockerfile @@ -1,22 +1,24 @@ -FROM debian:stable -MAINTAINER yuzu +FROM debian:buster +LABEL maintainer="yuzu" # Create a user account yuzu (UID 1027) that the container will run as -RUN apt-get update && apt-get -y full-upgrade && \ +RUN useradd -m -u 1027 -s /bin/bash yuzu && \ + apt-get update && apt-get -y full-upgrade && \ apt-get install --no-install-recommends -y \ + apt-utils \ ca-certificates \ + cargo \ curl \ gnupg \ - apt-utils && \ + libssl-dev \ + libwebkit2gtk-4.0-dev \ + nodejs && \ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg -o /tmp/pubkey.gpg && \ apt-key add /tmp/pubkey.gpg && \ echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list && \ apt-get update && apt-get install --no-install-recommends -y \ - libwebkit2gtk-4.0-dev \ - libssl-dev \ - cargo \ - nodejs \ yarn && \ apt-get clean autoclean && \ apt-get autoremove --yes && \ rm -rf /var/lib/apt /var/lib/dpkg /var/lib/cache /var/lib/log +USER 1027