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
|
||||||
@@ -25,9 +27,6 @@ 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