bitque/Dockerfile.build

16 lines
592 B
Docker

FROM ubuntu:18.04
WORKDIR /app/
RUN apt-get update && apt-get install -y curl git openssl libpq-dev gcc openssl1.0 make cmake
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly -y
RUN . $HOME/.cargo/env && \
rustup toolchain install nightly && rustup default nightly
RUN ls -al /app
CMD . $HOME/.cargo/env && \
cd ./bitque-server && \
rm -Rf ./target/debug/bitque_server && \
cargo build --bin bitque_server --release --no-default-features --features local-storage && \
cp /app/target/release/bitque_server /app/build/