mirror of https://github.com/cowrie/cowrie.git
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:
parent
cd83929ff2
commit
42416a4fb6
|
@ -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>"
|
||||
|
|
Loading…
Reference in New Issue