2020-10-21 23:59:17 +02:00
|
|
|
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 && \
|
2023-03-31 23:25:20 +02:00
|
|
|
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/
|