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}'` \