Skip to content

Instantly share code, notes, and snippets.

@imylomylo
Created July 25, 2019 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imylomylo/90a3b18402cd8a745cff66a079978cfa to your computer and use it in GitHub Desktop.
Save imylomylo/90a3b18402cd8a745cff66a079978cfa to your computer and use it in GitHub Desktop.
marketmaker docker
FROM ubuntu:18.04 as build
ENV BUILD_PACKAGES="build-essential git llvm-3.9-dev libclang-3.9-dev clang-3.9 cmake libssl-dev pkg-config jq curl"
RUN apt-get update && \
  apt-get install -y $BUILD_PACKAGES
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN /bin/bash -c "source $HOME/.cargo/env && rustup install nightly-2019-06-26 && rustup default nightly-2019-06-26 && rustup component add rustfmt-preview"
RUN git clone https://github.com/KomodoPlatform/atomicDEX-API --branch mm2 --single-branch 
RUN cd atomicDEX-API && /bin/bash -c "source $HOME/.cargo/env && cargo build --features native -vv"


#RUN cd /atomicDEX-API/target/debug && wget https://raw.githubusercontent.com/jl777/coins/master/coins
#CMD ["/bin/bash"] 

#RUN rustup install nightly-2019-06-26
#RUN rustup default nightly-2019-06-26
#RUN rustup component add rustfmt-preview

FROM ubuntu:18.04
RUN apt-get update && \
  apt-get install -y git jq wget curl nano
#RUN git clone https://github.com/KomodoPlatform/atomicDEX-API --branch mm2 --single-branch 
#RUN mkdir -p /atomicDEX-API/target/debug && cd /atomicDEX-API/target/debug && wget https://raw.githubusercontent.com/jl777/coins/master/coins
RUN cd /usr/local/bin && wget https://raw.githubusercontent.com/jl777/coins/master/coins
COPY --from=build /atomicDEX-API/target/debug/mm2 /usr/local/bin
COPY /scripts/* /usr/local/bin/
COPY /scripts/userpass.txt /
CMD ["/bin/bash"] 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment