aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-11-22 15:35:51 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-11-22 15:35:51 +0100
commit400b38626c461db64d4e584bd612451bc37e9961 (patch)
tree471077a1edf46f124d4ffdefb876e92e970ddaee /Dockerfile
parent73019ecfcc10127b2609312100e9741aae932cab (diff)
downloads2i-virtio-spec-400b38626c461db64d4e584bd612451bc37e9961.tar.gz
create parent dirs
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index cffd1f2..de6eeb5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -64,7 +64,9 @@ RUN dnf install -y liberation-fonts \
COPY ./s2i/bin/ /usr/libexec/s2i
COPY ./etc/virtio-spec-documentroot.conf /etc/httpd/conf.d/
-RUN useradd -d /opt/app-root/src -u 1001 default
+RUN mkdir -p /opt/app-root;\
+ chmod 755 /opt /opt/app-root;\
+ useradd -d /opt/app-root/src -u 1001 default
USER 1001
EXPOSE 8080