-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from umccr/docker
Docker release support
- Loading branch information
Showing
7 changed files
with
80 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ permissions: | |
contents: write | ||
|
||
jobs: | ||
test: | ||
benchmark: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
|
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
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 |
---|---|---|
@@ -1,25 +1,22 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM rust:1.61.0 AS builder | ||
FROM rust:1.73.0 AS builder | ||
|
||
ARG TARGETPLATFORM | ||
WORKDIR /build | ||
|
||
WORKDIR /root | ||
|
||
RUN --mount=type=cache,target=/usr/local/cargo/registry,id=${TARGETPLATFORM} \ | ||
cargo install cargo-strip | ||
RUN cargo install cargo-strip | ||
|
||
COPY . . | ||
|
||
RUN --mount=type=cache,target=/usr/local/cargo/registry,id=${TARGETPLATFORM} --mount=type=cache,target=/root/target,id=${TARGETPLATFORM} \ | ||
cargo build --release && \ | ||
cargo strip && \ | ||
mv /root/target/release/htsget-actix /root | ||
RUN cargo build --features url-storage --release && \ | ||
cargo strip | ||
|
||
FROM debian:sid-slim | ||
|
||
FROM gcr.io/distroless/cc-debian11 | ||
RUN apt update && apt install -y libc6-dev && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=builder /root/htsget-actix / | ||
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs/ | ||
COPY --from=builder /build/target/release/htsget-actix /usr/local/bin/htsget-actix | ||
|
||
ENTRYPOINT ["./htsget-actix"] | ||
EXPOSE 8080 | ||
EXPOSE 8081 | ||
|
||
EXPOSE 3000 | ||
CMD [ "htsget-actix" ] |
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