Add market data backfilling

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2023-09-09 17:48:49 +03:00
parent 548a8e42d5
commit e26d2b95e7
72 changed files with 1847 additions and 1044 deletions

24
Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM rust:alpine AS builder
RUN apk add --no-cache pkgconf musl-dev openssl-dev
WORKDIR /usr/src/qrust
ENV SQLX_OFFLINE true
RUN mkdir src && echo "fn main() {}" > src/main.rs
COPY Cargo.toml .sqlx ./
RUN cargo build --release
RUN rm -rf src
COPY . .
RUN cargo build --release
FROM alpine AS qrust
WORKDIR /usr/src/qrust
COPY --from=builder /usr/src/qrust/target/release/qrust .
COPY log4rs.yaml .
EXPOSE 7878
CMD ["./qrust"]