vctl-docs
vctl-docs copied to clipboard
The USER directive does not modify $HOME for RUN
With the following directive in Dockerfile:
FROM ubuntu:20.04 AS builder
RUN useradd -m -s /bin/bash nemo
USER nemo:nemo
RUN echo $HOME
Expected:
> /home/nemo
Actual:
> /