Comment ajouter un utilisateur avec dockerfile?

Comment puis-je ajouter un utilisateur avec Dockerfile - ci-dessous ne fonctionne pas.

USER vault
WORKDIR /usr/local/bin/vault

Mon Dockerfile:

FROM alpine:3.4
RUN apk update && apk add curl unzip
RUN useradd -ms /bin/bash vault

USER vault
WORKDIR /usr/local/bin/vault
ADD /vault.hcl /etc/vault/vault.hcl

RUN curl -SL https://releases.hashicorp.com/vault/0.5.0/vault_0.5.0_linux_amd64.zip > vault.zip
RUN unzip vault.zip -d /usr/local/bin && rm vault.zip
InformationsquelleAutor Atlantic0 | 2016-10-04