dfimage

command module
v0.0.0-...-7947632 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 6 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL