Update Dockerfile
All checks were successful
Publish Docker Image / docker (push) Successful in 4m32s

This commit is contained in:
Lee 2024-07-18 16:26:32 +00:00
parent 752734c0e8
commit 972ce255a1

@ -1,11 +1,5 @@
FROM ubuntu:22.04 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 \ 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 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}'` \ && apt-get install --no-install-recommends --no-install-suggests -y `apt-cache depends firefox-esr | awk '/Depends:/{print$2}'` \
@ -27,3 +21,9 @@ RUN FIREFOX_SETUP=firefox-setup.tar.bz2 && \
tar xjf $FIREFOX_SETUP -C /opt/ && \ tar xjf $FIREFOX_SETUP -C /opt/ && \
ln -s /opt/firefox/firefox /usr/bin/firefox && \ ln -s /opt/firefox/firefox /usr/bin/firefox && \
rm $FIREFOX_SETUP 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