aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-11-22 14:12:54 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-11-22 14:12:54 +0100
commitd354ac4aca1b15bb153486744cdf347661b3f790 (patch)
treed1ce105ff04133f929014f47807850de04d30740
parent95f0db5fa925f8e4c79e0fb1f5ea61ee38d92abb (diff)
downloads2i-virtio-spec-d354ac4aca1b15bb153486744cdf347661b3f790.tar.gz
prepare app-root
-rw-r--r--Dockerfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index b2e86fa..a328c8f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -63,6 +63,10 @@ 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;
USER 1001
EXPOSE 8080