wip docker

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2022-07-29 11:15:26 +02:00
parent 6a95295eba
commit 3fcb9000a1
3 changed files with 44 additions and 0 deletions

19
.dockerignore Normal file
View File

@ -0,0 +1,19 @@
.DS_Store
.anchor
test-ledger
target
**/*.rs.bk
dist
node_modules
yarn-error.log
.idea
.vscode
programs/margin-trade/src/lib-expanded.rs
programs/mango-v4/src/lib-expanded.rs
keeper/.env

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM debian:buster-slim
COPY target/release/keeper /usr/local/bin
COPY target/release/liquidator /usr/local/bin
CMD ["keeper"]

19
Dockerfile.BAK Normal file
View File

@ -0,0 +1,19 @@
FROM rust:1.60 as builder
RUN apt-get -y update
RUN apt-get -y dist-upgrade
RUN apt-get -y install build-essential gcc libssl-dev
RUN apt-get -y install clang
RUN apt-get -y install cmake
WORKDIR /usr/src/mango-v4
COPY . .
COPY ./cargo /usr/local/cargo
RUN cargo build --release --package keeper
COPY target/release/keeper /usr/local/bin
FROM debian:buster-slim
COPY --from=builder /usr/local/bin /usr/local/bin
CMD ["keeper"]