I need to append to the PATH within a Windows Docker container, and I\'ve tried many permutations.
ENV PATH=%PATH%;C:\\\\Foo\\\\bin ENV PATH=$PATH;C:\\\\Foo\
[Environment]::SetEnvironmentVariable is a good way, but will not work in nanoserver. The best choice is:
[Environment]::SetEnvironmentVariable
RUN setx path '%path%;C:\Foo\bin'