We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5a4719 commit 2ed1349Copy full SHA for 2ed1349
1 file changed
ci-runner/Dockerfile-v27
@@ -24,6 +24,17 @@ RUN apk update && apk add --no-cache --virtual .build-deps && apk add bash && ap
24
apk --purge -v del py-pip && \
25
rm /var/cache/apk/*
26
27
+# Ensure /bin/sh reads /etc/shinit for interactive shells
28
+ENV ENV=/etc/shinit
29
+
30
+# Disable core dumps for login shells, bash, and non-login /bin/sh
31
+RUN set -euo pipefail; \
32
+ mkdir -p /etc/profile.d; \
33
+ printf 'ulimit -c 0\n' > /etc/profile.d/disable-core.sh; \
34
+ printf 'ulimit -c 0\n' > /etc/bash.bashrc; \
35
+ printf 'ulimit -c 0\n' >> /root/.bashrc; \
36
+ printf 'ulimit -c 0\n' > /etc/shinit
37
38
COPY --from=docker/compose:1.29.2 /usr/local/bin/docker-compose /usr/bin/docker-compose
39
40
COPY ./buildpack.json /git-ask-pass.sh /
0 commit comments