fix: move user env to the beginning

This commit is contained in:
Alex
2021-11-21 17:47:25 +02:00
parent aa054a48bf
commit 2afebbba5a

View File

@@ -11,6 +11,8 @@ RUN useradd -m -d /home/container -s /bin/bash container
RUN ln -s /home/container/ /nonexistent
ENV USER=container HOME=/home/container
## Update base packages
RUN apt update \
&& apt upgrade -y
@@ -24,10 +26,7 @@ RUN apt install -y gcc g++ libgcc1 lib32gcc-s1 libc++-dev gdb libc6 git
RUN update-locale lang=en_US.UTF-8 \
&& dpkg-reconfigure --frontend noninteractive locales
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY ./entrypoint.sh /entrypoint.sh