From 972ce255a1129be52057172153b80fa28b3f4fdf Mon Sep 17 00:00:00 2001 From: Lee Date: Thu, 18 Jul 2024 16:26:32 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7548a89..cc01b1c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,5 @@ 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}'` \ @@ -26,4 +20,10 @@ RUN FIREFOX_SETUP=firefox-setup.tar.bz2 && \ wget -O $FIREFOX_SETUP "https://download.mozilla.org/?product=firefox-95.0.1&os=linux64" && \ tar xjf $FIREFOX_SETUP -C /opt/ && \ ln -s /opt/firefox/firefox /usr/bin/firefox && \ - rm $FIREFOX_SETUP \ No newline at end of file + rm $FIREFOX_SETUP + +## 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