Specify user for Docker containers
Change-Id: I7aab03bb17a2e0d3e3951922b357c6bfbf1c7f20 Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
This commit is contained in:
parent
374ad76870
commit
552abb2a46
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
*build/
|
*build/
|
||||||
|
.idea/
|
@ -39,3 +39,9 @@ RUN curl -L https://github.com/mikefarah/yq/releases/download/2.4.0/yq_linux_amd
|
|||||||
&& chmod +x /bin/yq
|
&& chmod +x /bin/yq
|
||||||
|
|
||||||
CMD /bin/bash /builder/build.sh
|
CMD /bin/bash /builder/build.sh
|
||||||
|
|
||||||
|
RUN useradd airship --create-home --shell=/bin/bash
|
||||||
|
|
||||||
|
USER airship
|
||||||
|
|
||||||
|
WORKDIR /home/airship/
|
@ -14,3 +14,9 @@ RUN set -ex ;\
|
|||||||
FROM ubuntu:18.04 as dist
|
FROM ubuntu:18.04 as dist
|
||||||
|
|
||||||
COPY --from=downloader /tmp/ironic-python-agent /
|
COPY --from=downloader /tmp/ironic-python-agent /
|
||||||
|
|
||||||
|
RUN useradd airship --create-home --shell=/bin/bash
|
||||||
|
|
||||||
|
USER airship
|
||||||
|
|
||||||
|
WORKDIR /home/airship/
|
Loading…
x
Reference in New Issue
Block a user