CenturyLinkLabs / dockerfile-from-image

574 stars 134 forks source link

Invalid CMD and ENTRYPOINT produced #13

Open marius311 opened 8 years ago

marius311 commented 8 years ago

I'm using Docker 1.10, not sure if this is version specific. If I have a Dockerfile that looks like this:

CMD ["echo","hello"]
ENTRYPOINT ["echo","hello"]

The reverse engineered version looks like this:

CMD ["echo" "hello"]
ENTRYPOINT &{["echo" "hello"]}

Neither of these actually work like the original Dockerfile commands. Both would need a comma separating the quoted strings, and additionally ENTRYPOINT needs the&{ and } removed.