fix: move user env to the beginning
This commit is contained in:
@@ -11,6 +11,8 @@ RUN useradd -m -d /home/container -s /bin/bash container
|
|||||||
|
|
||||||
RUN ln -s /home/container/ /nonexistent
|
RUN ln -s /home/container/ /nonexistent
|
||||||
|
|
||||||
|
ENV USER=container HOME=/home/container
|
||||||
|
|
||||||
## Update base packages
|
## Update base packages
|
||||||
RUN apt update \
|
RUN apt update \
|
||||||
&& apt upgrade -y
|
&& 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 \
|
RUN update-locale lang=en_US.UTF-8 \
|
||||||
&& dpkg-reconfigure --frontend noninteractive locales
|
&& dpkg-reconfigure --frontend noninteractive locales
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
USER container
|
|
||||||
ENV USER=container HOME=/home/container
|
|
||||||
WORKDIR /home/container
|
WORKDIR /home/container
|
||||||
|
|
||||||
COPY ./entrypoint.sh /entrypoint.sh
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
|
Reference in New Issue
Block a user