Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract docker files from image #10

Open
xie186 opened this issue Aug 13, 2019 · 0 comments
Open

Extract docker files from image #10

xie186 opened this issue Aug 13, 2019 · 0 comments

Comments

@xie186
Copy link
Owner

xie186 commented Aug 13, 2019

File: Dockerfile

CenturyLinkLabs/dockerfile-from-image#14 (comment)

FROM alpine:3.2
MAINTAINER CenturyLink Labs <[email protected]>

RUN apk --update add ruby-dev ca-certificates && \
    gem install --no-rdoc --no-ri docker-api && \
    apk del ruby-dev ca-certificates && \
    apk add ruby ruby-json && \
    rm /var/cache/apk/*

ADD dockerfile-from-image.rb /usr/src/app/dockerfile-from-image.rb
RUN chmod +x /usr/src/app/dockerfile-from-image.rb

ENTRYPOINT ["/usr/src/app/dockerfile-from-image.rb"]
CMD ["--help"]


sudo docker build -t docker-from-file-image - < Dockerfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant