-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
25 lines (17 loc) · 812 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
####################################################################################################
## Builder
####################################################################################################
FROM rust:1.60.0 AS builder
RUN rustup target add x86_64-unknown-linux-musl
RUN apt update && apt install -y musl-tools musl-dev libssl-dev
RUN update-ca-certificates
WORKDIR /app
COPY ./ .
RUN cargo install --target x86_64-unknown-linux-musl --path .
####################################################################################################
## Final image
####################################################################################################
FROM alpine
# Copy our build
COPY --from=builder /usr/local/cargo/bin/transmission-rss .
ENTRYPOINT ["./transmission-rss"]