This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a Dockerfile that builds the facilitator in a minimal Alpine Linux container, then packages the statically linked binary into another Alpine Linux container. Also adds a `docker build` step to CI build.
- Loading branch information
1 parent
995a63c
commit 0339d09
Showing
4 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM rust:1.46-alpine as builder | ||
|
||
RUN apk add libc-dev && apk update | ||
|
||
WORKDIR /usr/src/prio-server | ||
# We enumerate these paths so that `docker build` fails in an obvious way if run | ||
# from the wrong place. | ||
COPY ./avro-schema ./avro-schema | ||
COPY ./facilitator ./facilitator | ||
|
||
RUN cargo install --path ./facilitator | ||
|
||
FROM rust:1.46-alpine | ||
RUN apk update | ||
COPY --from=builder /usr/local/cargo/bin/facilitator /usr/local/bin/facilitator | ||
ENTRYPOINT ["/usr/local/bin/facilitator"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.