Skip to content

Commit

Permalink
(GH-1020) Docker add ChocolateyInstall Env Var
Browse files Browse the repository at this point in the history
The ChocolateyInstall environment variable is needed to for docker
choco to not output a warning that it cannot find the Chocolatey
lib directory and use a different path for packages depending on where
the command is run from. Add the environment variable to make it available
in the right location.
  • Loading branch information
TheCakeIsNaOH authored and ferventcoder committed Mar 23, 2020
1 parent a3679bb commit 43822e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/Dockerfile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ RUN ln -s /usr/local/src/choco/code_drop/chocolatey

COPY docker/choco_wrapper /usr/local/bin/choco

ENV ChocolateyInstall /usr/local/bin/chocolatey

WORKDIR /root

0 comments on commit 43822e3

Please sign in to comment.