Skip to content

Commit

Permalink
add direnv to the container image to support setting environment vari… (
Browse files Browse the repository at this point in the history
#32)

* add direnv to the container image to support setting environment variables in code

* remove non-critical commands
  • Loading branch information
usrbinkat authored Jan 11, 2024
1 parent cd15c0f commit c52aa43
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit c52aa43

Please sign in to comment.