| 1 |
FROM ubuntu:18.04 |
| 2 |
# The ARG should be ignored due to the |
| 3 |
# conflict with the ENV declaration. |
| 4 |
ARG USER_NAME=my_user_arg |
| 5 |
ENV USER_NAME=my_user_env |
| 6 |
RUN useradd -r -s /bin/false -m -d /home/${USER_NAME} ${USER_NAME} |
| 7 |
USER ${USER_NAME} |
| 8 |
WORKDIR /home/${USER_NAME} |