NilsIrl / dockerc

container image to single executable compiler
GNU General Public License v3.0
2.74k stars 40 forks source link

How do you read from the current working directory? #11

Closed Xe closed 2 months ago

Xe commented 5 months ago

See title, tried to package up a "serve the current working directory" go program and it instantly exited.

NilsIrl commented 5 months ago

Is that the current working directory inside or outside the container?

If outside, then you should be able to do ./executable -v .:/pwd and replace /pwd with the path of the CWD in the container.

If inside I don't know with the current amount of information given.