larsks / dockerize

A tool for creating minimal docker images from dynamic ELF binaries.
GNU General Public License v3.0
355 stars 41 forks source link

Workingdir #9

Closed carlochess closed 5 years ago

carlochess commented 8 years ago

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

larsks commented 8 years ago

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.

carlochess commented 8 years ago

That's a great idea. Thanks man!