Add Dockerfile
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM rust:1.59.0-slim-bullseye as build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update && apt-get install -y libssl-dev pkg-config
|
||||
|
||||
COPY ./src ./src
|
||||
COPY ./Cargo.toml ./
|
||||
COPY ./Cargo.lock ./
|
||||
|
||||
RUN cargo build --release
|
||||
|
||||
#################
|
||||
# RELEASE IMAGE #
|
||||
#################
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/target/release/le-easy-certs /app/
|
||||
|
||||
ENV LE_CONF=/le-conf/le-conf.toml
|
||||
|
||||
CMD ["./le-easy-certs"]
|
||||
Reference in New Issue
Block a user