Skip to content

Commit

Permalink
Remove version constraints on container images (#549)
Browse files Browse the repository at this point in the history
This fixes errors during the build of this image, occuring due to
non-existent version tags.
  • Loading branch information
f1rstlady authored Sep 29, 2023
1 parent 3ebc0b3 commit a6c7a1e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
FROM rust:1.64-bullseye AS selene-builder
ARG RUST_VERSION="1"

FROM rust:${RUST_VERSION}-bullseye AS selene-builder
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install g++ && \
cargo install --branch main --git https://github.com/Kampfkarren/selene selene

FROM rust:1.64-bullseye AS selene-light-builder
FROM rust:${RUST_VERSION}-bullseye AS selene-light-builder
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install g++ && \
cargo install --no-default-features --branch main --git https://github.com/Kampfkarren/selene selene

FROM rust:1.64-alpine3.14 AS selene-musl-builder
FROM rust:${RUST_VERSION}-alpine AS selene-musl-builder
RUN apk add g++ && \
cargo install --branch main --git https://github.com/Kampfkarren/selene selene

FROM rust:1.64-alpine3.14 AS selene-light-musl-builder
FROM rust:${RUST_VERSION}-alpine AS selene-light-musl-builder
RUN apk add g++ && \
cargo install --no-default-features --branch main --git https://github.com/Kampfkarren/selene selene

Expand All @@ -32,4 +34,4 @@ CMD ["/selene"]

FROM bash AS selene-light-musl
COPY --from=selene-light-musl-builder /usr/local/cargo/bin/selene /
CMD ["/selene"]
CMD ["/selene"]

0 comments on commit a6c7a1e

Please sign in to comment.