Skip to content

Commit 312ffa2

Browse files
richardkapolnairichardkapolnai-da
authored andcommitted
Dockerfile: relax permissions to allow non-root execution
Apply 'chmod -R a+rX /staging' to solve #3303 .
1 parent d3f94af commit 312ffa2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

build/docker/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ COPY --from=build /go/src/crowdsec/build/docker/config.yaml /staging/etc/crowdse
4949
COPY --from=build /var/lib/crowdsec /staging/var/lib/crowdsec
5050
RUN yq -n '.url="http://0.0.0.0:8080"' | install -m 0600 /dev/stdin /staging/etc/crowdsec/local_api_credentials.yaml
5151

52+
RUN chmod -R a+rX /staging
53+
5254
ENTRYPOINT ["/bin/bash", "/docker_start.sh"]
5355

5456
FROM slim AS full

0 commit comments

Comments
 (0)