I want to set bash environment variable in Dockerfile.
How I can do it?
Host: OS X 10.11.4
Guest: ubuntu:latest
Dockerfile:
RUN mkdir ~/gopath_dir
RUN apt-get install ubuntu-make
RUN umake go
# I want to set $GOPATH to ~/gopath_dir
You can declare a environment variable with the ENV statement
ENV foo=hello
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments