From 752734c0e82573ade523eb6ab21a21e88ec53036 Mon Sep 17 00:00:00 2001 From: Lee Date: Thu, 18 Jul 2024 16:25:52 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4807ff8..7548a89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,11 @@ FROM ubuntu:22.04 +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + RUN apt-get update -y \ && apt-get install --no-install-recommends --no-install-suggests -y tzdata ca-certificates bzip2 curl wget libc-dev libxt6 openjdk-19-jdk openjdk-19-jre \ && apt-get install --no-install-recommends --no-install-suggests -y `apt-cache depends firefox-esr | awk '/Depends:/{print$2}'` \