-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (19 loc) · 893 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
# FROM rust:1.71.0
# LABEL org.opencontainers.image.authors="[email protected]"
# RUN apt-get update && apt-get install -y openssl curl procps && rm -rf /var/lib/apt/lists/*
# WORKDIR /usr/src/authress-local
# COPY . .
# RUN cargo build --release --example server
# EXPOSE 8888
# CMD ["/usr/src/authress-local/target/release/examples/server"]
FROM rust:1.71.0 as builder
WORKDIR /usr/src/authress-local
COPY . .
RUN apt-get update & apt-get install -y openssl curl procps & rm -rf /var/lib/apt/lists/*
RUN cargo build --release --example server
FROM debian:bullseye-slim
LABEL org.opencontainers.image.authors="[email protected]"
RUN apt-get update & apt-get install -y openssl curl procps & rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/src/authress-local/target/release/examples/server /usr/local/bin/authress-local
EXPOSE 8888
CMD ["/usr/local/bin/authress-local"]