slim and full periphery. updated stats type

This commit is contained in:
beckerinj
2022-12-12 00:46:27 -05:00
parent b98f4a6ec1
commit e5dec41b49
20 changed files with 220 additions and 105 deletions

View File

@@ -1,11 +1,19 @@
FROM rust:latest as builder
WORKDIR /core
WORKDIR /builder
COPY . .
COPY ./core ./core
RUN cargo build -p core --release
COPY ./lib/types ./lib/types
COPY ./lib/helpers ./lib/helpers
COPY ./lib/db_client ./lib/db_client
COPY ./lib/periphery_client ./lib/periphery_client
RUN cd core && cargo build --release
FROM gcr.io/distroless/cc
COPY --from=builder /core/target/release/core /
COPY --from=builder /builder/core/target/release/core /
EXPOSE 9000
CMD ["./core"]