-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
30 lines (21 loc) · 791 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
26
27
28
29
30
FROM rust:1.80-slim AS builder
RUN apt update \
&& apt install -y \
pkg-config \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
COPY . .
RUN cargo install --path .
########################################################################################################################
FROM debian:12-slim
LABEL org.opencontainers.image.source=https://github.com/s373r/freshrss-image-cache-service-rs
RUN apt update \
&& apt install -y \
ca-certificates \
libssl3 \
&& rm -rf /var/lib/apt/lists/* \
&& update-ca-certificates
WORKDIR /usr/src/app
COPY --from=builder /usr/local/cargo/bin/freshrss-image-cache-service-rs /usr/local/bin/freshrss-image-cache-service-rs
ENTRYPOINT ["freshrss-image-cache-service-rs"]