Skip to content

zer0yu/dfimage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerfile From Image (dfimage)

Reverse-engineers a Dockerfile from a Docker image.

UsageInstallDocker ExampleReferencesLicense

usage

# dfimage  <image>
dfimage ruby:latest

installation

Run the following command to install the latest version:

go install -v github.com/zer0yu/dfimage@latest

or you can download the binary from releases

docker-example

❯ docker pull ruby:latest

❯ dfimage ruby:latest
FROM ruby:latest
ADD file:3e9b6405f11dd24ce62105c033f1d8b931d9409298553f63b03af1b6dd1dda35 in /
CMD ["bash"]
...
ENV GEM_HOME=/usr/local/bundle
ENV BUNDLE_SILENCE_ROOT_WARNING=1 BUNDLE_APP_CONFIG=/usr/local/bundle
ENV PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN /bin/sh -c mkdir -p "$GEM_HOME" \
    && chmod 1777 "$GEM_HOME"
CMD ["irb"]

References

  1. dfimage - python
  2. Inspiration

License

MIT License

About

Reverse-engineer a Dockerfile from a Docker image.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages