aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-11-22 15:34:37 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-11-22 15:34:37 +0100
commit73019ecfcc10127b2609312100e9741aae932cab (patch)
tree64da71e750723f3a6e1e12e5a5115a8cb8c5b004
parent20508b365ed7b33f8f61d822a2269a1f90222c8e (diff)
downloads2i-virtio-spec-73019ecfcc10127b2609312100e9741aae932cab.tar.gz
add useradd call
-rw-r--r--Dockerfile5
1 files changed, 1 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 394ef43..cffd1f2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -64,10 +64,7 @@ RUN dnf install -y liberation-fonts \
COPY ./s2i/bin/ /usr/libexec/s2i
COPY ./etc/virtio-spec-documentroot.conf /etc/httpd/conf.d/
-RUN mkdir -p /opt/app-root;\
- chmod 755 /opt; \
- chmod 755 /opt/app-root; \
- chown 1001 /opt/app-root;
+RUN useradd -d /opt/app-root/src -u 1001 default
USER 1001
EXPOSE 8080