Fix permissions inside Docker image (#873)

Some developers have different file permissions in their source
directory. This could lead to unusable Docker images.
We enforce now the correct file permissions during our Docker build.
This commit is contained in:
Florian Pelgrim 2018-09-06 17:36:08 +02:00 committed by Michel Oosterhof
parent cd83929ff2
commit 42416a4fb6
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ RUN apt-get remove -y python-pip && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/log/*
COPY src /cowrie
RUN find /cowrie -type d -exec chmod 755 {} \; && \
find /cowrie -type f -exec chmod 744 {} \;
FROM pre-release as release
LABEL maintainer="Florian Pelgrim <florian.pelgrim@craneworks.de>"