Specify user for Docker containers

Change-Id: I7aab03bb17a2e0d3e3951922b357c6bfbf1c7f20
Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
This commit is contained in:
Alexander Hughes 2020-04-21 10:57:26 -04:00
parent 374ad76870
commit 552abb2a46
3 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*build/
.idea/

View File

@ -39,3 +39,9 @@ RUN curl -L https://github.com/mikefarah/yq/releases/download/2.4.0/yq_linux_amd
&& chmod +x /bin/yq
CMD /bin/bash /builder/build.sh
RUN useradd airship --create-home --shell=/bin/bash
USER airship
WORKDIR /home/airship/

View File

@ -14,3 +14,9 @@ RUN set -ex ;\
FROM ubuntu:18.04 as dist
COPY --from=downloader /tmp/ironic-python-agent /
RUN useradd airship --create-home --shell=/bin/bash
USER airship
WORKDIR /home/airship/