mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-25 10:49:30 -05:00
Play around with letting interactive Bash shells also access the container environment
This commit is contained in:
parent
8ad794e189
commit
9dcc111bcf
@ -75,6 +75,12 @@ RUN set -eux \
|
||||
&& echo "Removing downloaded archives" \
|
||||
&& rm ./*.tar.xz \
|
||||
&& rm ./*.sha256 \
|
||||
&& echo "Configuring Bash to see container environment" \
|
||||
&& echo '#!/bin/sh' > /tmp/bash-wrapper \
|
||||
&& echo 'exec /command/with-contenv /bin/bash.original "$@"' >> /tmp/bash-wrapper \
|
||||
&& chmod +x /tmp/bash-wrapper \
|
||||
&& cp /bin/bash /bin/bash.original \
|
||||
&& mv /tmp/bash-wrapper /bin/bash \
|
||||
&& echo "Cleaning up image" \
|
||||
&& apt-get --yes purge ${S6_BUILD_TIME_PKGS} \
|
||||
&& apt-get --yes autoremove --purge \
|
||||
|
Loading…
x
Reference in New Issue
Block a user