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

Docker image #9

Open
kkalev opened this issue Feb 15, 2023 · 0 comments
Open

Docker image #9

kkalev opened this issue Feb 15, 2023 · 0 comments

Comments

@kkalev
Copy link

kkalev commented Feb 15, 2023

This is a feature request to create a Docker image of the tool by including a Dockerfile in the repo.

The following is a Dockerfile based on debian:bullseye-slim which installs the executable and manpage. Total size is 85MB

  • Build: docker build -t <image> .
  • Run: docker run --rm <image> webisoget
  • Manpage: docker run -it --rm <image> man webisoget
FROM debian:bullseye as builder

RUN apt-get update && apt-get install -yq --no-install-recommends libtool autoconf automake gcc \
        libssl-dev libcurl4-openssl-dev zlib1g-dev libcrypto++-dev make && \
        rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*

RUN mkdir /webisoget
COPY . /webisoget
WORKDIR /webisoget
RUN bash ./boot
RUN ./configure
RUN make && make install

FROM debian:bullseye-slim
RUN apt-get update && apt-get install -yq --no-install-recommends libcurl4 man && \
        rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
COPY --from=builder /usr/local/bin/webisoget /usr/local/bin/webisoget
COPY --from=builder /usr/local/share/man/man1/webisoget.1 /usr/local/share/man/man1/webisoget.1
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