I have two Dockerfiles
FROM alpine WORKDIR /test RUN touch abc.txt USER 1001
The first builds fine
docker build -t myimage:foo .