From 6459152833ff1bf2830de406475e1b65133039e6 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Sun, 12 Feb 2023 20:13:42 +0100 Subject: [PATCH] Migrate the Dockerfile to Ubuntu --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 79e4779..aeba9d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,16 @@ -FROM rust:1.66.1-alpine3.17 as builder +FROM rust:1.67.1-slim-buster as builder WORKDIR /src -RUN apk update && apk add --no-cache libressl-dev musl-dev gcc +RUN apt-get update &&\ + apt-get install -y libssl-dev gcc musl pkg-config COPY ./ . RUN cargo build --release -FROM alpine:3.17.1 +FROM debian:stable COPY --from=builder /src/target/release/dudo /bin/dudo -RUN apk update && apk add --no-cache libressl-dev libc6-compat +RUN apt-get update &&\ + apt-get install openssl ca-certificates &&\ + apt-get clean RUN chmod +x /bin/dudo WORKDIR /workdir ENTRYPOINT ["/bin/dudo"]