larsks / dockerize

A tool for creating minimal docker images from dynamic ELF binaries.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Workingdir

carlochess opened this issue · comments

I think that the default working dir of the image dockerize create is '/', can we add an optional argument like

`optional arguments:
-w, --wd change the working dir

And then, in the dockerfile

`FROM scratch
COPY . /
WORKDIR /home/great/music/

ENTRYPOINT ["/bin/bash"]
`
Thanks in advance

You're welcome to submit a patch for the above, although in general I would probably just specify the working dir via the -w option to docker run.

That's a great idea. Thanks man!