vctl-docs icon indicating copy to clipboard operation
vctl-docs copied to clipboard

The USER directive does not modify $HOME for RUN

Open Kentzo opened this issue 4 years ago • 0 comments

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:

> /

Kentzo avatar Dec 30 '20 04:12 Kentzo