File: Dockerfile.envargconflict

package info (click to toggle)
golang-github-openshift-imagebuilder 1.1.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,048 kB
  • sloc: makefile: 13; sh: 1; ansic: 1
file content (8 lines) | stat: -rw-r--r-- 258 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
FROM ubuntu:18.04
# The ARG should be ignored due to the
# conflict with the ENV declaration.
ARG USER_NAME=my_user_arg
ENV USER_NAME=my_user_env
RUN useradd -r -s /bin/false -m -d /home/${USER_NAME} ${USER_NAME}
USER ${USER_NAME}
WORKDIR /home/${USER_NAME}