Skip to content

Commit

Permalink
Merge pull request #1 from WISVCH/fix/docker
Browse files Browse the repository at this point in the history
Correctly compile and output the docker image
  • Loading branch information
dsluijk authored Dec 6, 2024
2 parents bcdb254 + 836db82 commit f510d15
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
FROM rust:latest AS builder
FROM rust:alpine AS builder

WORKDIR /app
RUN apk update && apk upgrade
RUN apk add libc-dev openssl-dev openssl-libs-static
COPY ./Cargo.toml ./Cargo.lock ./
COPY ./src ./src
RUN cargo build --release
RUN mv ./target/release/JollyFellow ./app

FROM rust:1-alpine3.20
FROM alpine

WORKDIR /app
COPY --from=builder /app/app /usr/local/bin/
CMD ["/usr/local/bin/app"]
COPY --from=builder /app/target/release/JollyFellow /usr/local/bin/jollyfellow
CMD ["jollyfellow"]

0 comments on commit f510d15

Please sign in to comment.