Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

add direnv to the container image to support setting environment vari… #32

Merged
merged 2 commits into from
Jan 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,16 @@ RUN set -ex \
&& rm -rf /tmp/* \
&& true

# Install direnv
RUN set -ex \
&& echo 'eval "\$(direnv hook $SHELL)"' | sudo tee -a /etc/skel/.bashrc | tee -a ${HOME}/.bashrc \
&& curl --output /tmp/install.sh --proto '=https' --tlsv1.2 -Sf -L "https://direnv.net/install.sh" \
&& chmod +x /tmp/install.sh \
&& sudo bash -c "/tmp/install.sh" \
&& direnv --version \
&& sudo rm -rf /tmp/* \
&& true

# Install golang
# TODO: relocate install to devbox
ARG GO_PKGS="\
Expand Down
Loading