Skip to content
This repository was archived by the owner on Apr 18, 2023. It is now read-only.

Commit 7ccdae2

Browse files
committed
Use a login shell as entrypoint
Without this some important environment variables are not set, such as perl executables being added to PATH.
1 parent 583203a commit 7ccdae2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ USER build
1212
WORKDIR /home/build
1313

1414
# Auto-fetch GPG keys (for checking signatures):
15+
# hadolint ignore=DL3003
1516
RUN mkdir .gnupg && \
1617
touch .gnupg/gpg.conf && \
1718
echo "keyserver-options auto-key-retrieve" > .gnupg/gpg.conf && \
@@ -23,4 +24,5 @@ COPY run.sh /run.sh
2324

2425
# Build the package
2526
WORKDIR /pkg
26-
CMD ["/bin/bash", "/run.sh"]
27+
CMD ["/run.sh"]
28+
ENTRYPOINT ["/bin/bash", "--login", "-c"]

0 commit comments

Comments
 (0)