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

Minimal Dockerfile --- which packages are build deps? #83

Closed
TimeTravelersHackedMe opened this issue Feb 27, 2018 · 1 comment
Closed

Comments

@TimeTravelersHackedMe
Copy link

Hey, I'm trying to make a minimal Dockerfile/container for Sumokoin... can I eliminate any of the apt-gets in this code:

FROM debian:stretch-slim as builder

RUN apt-get update \
    && apt-get upgrade -y \
    && apt-get install -y --no-install-recommends \
        build-essential \
        ca-certificates \
        cmake \
        doxygen \
        git \
        graphviz \
        g++ \
        libboost-all-dev \
        libdb-dev \
        libevent-dev \
        libexpat1-dev \
        libgtest-dev \
        libminiupnpc-dev \
        libreadline-dev \
        libsodium-dev \
        libssl1.0-dev \
        libunbound-dev \
        libunwind8-dev \
        libzmq3-dev \
        make \
        pkg-config \
    && git clone https://github.com/sumoprojects/sumokoin.git /root/sumo \
    && cd /root/sumo \
    && rm -rf build \
    && make release-static

FROM debian:stretch-slim

WORKDIR /opt/sumo

RUN apt-get update \
    && apt-get upgrade -y \
    && apt-get install -y --no-install-recommends \
        curl \
        software-properties-common \
        gnupg \
    && curl -sL https://deb.nodesource.com/setup_9.x | bash \
    && apt-get install -y nodejs \
    && npm install -g pm2 \
    && apt-get autoclean \
    && apt-get autoremove -y \
    && rm -rf /var/lib/apt/lists/*
    
COPY --from=builder /root/sumo/build/release/bin/* /opt/sumo/

EXPOSE 19734 19735

CMD ["pm2-docker", "process.json"]

@sumoprojects
Copy link
Owner

-- Resolved

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

2 participants