Skip to content

Commit

Permalink
Push for now
Browse files Browse the repository at this point in the history
Signed-off-by: flamion <contact@flamion.dev>
  • Loading branch information
flamion committed Oct 13, 2023
1 parent 67a1e57 commit 1ceb5f6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
FROM docker.io/clux/muslrust:stable as builder
FROM docker.io/archlinux as builder
RUN pacman -Syu --noconfirm base-devel rustup
RUN rustup default stable && rustup target add wasm32-unknown-unknown
RUN cargo install cargo-make trunk
WORKDIR /build
COPY . ./
RUN cargo build --profile production
RUN cargo make -p release


FROM scratch
FROM docker.io/archlinux
WORKDIR /root
COPY --from=builder /build/target/x86_64-unknown-linux-musl/production/shorty .
CMD ["./shorty"]
COPY --from=builder /build/target/x86_64-unknown-linux-musl/release/shorty .
CMD ["./shorty"]

0 comments on commit 1ceb5f6

Please sign in to comment.