From 2acb05fad9fb8ff7c7cf58a456ee6d4d1e95931d Mon Sep 17 00:00:00 2001 From: Colin Reeder Date: Sun, 19 Jul 2020 18:33:14 -0600 Subject: [PATCH] Maybe fix dockerfile --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1ba5c2c..e72a76a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,16 @@ -FROM rust:1.45-alpine AS builder -RUN apk add --no-cache cargo openssl-dev +FROM rust:1.45-slim-buster AS builder +RUN apt-get update \ + && apt-get install -y libssl-dev pkg-config \ + && rm -rf /var/lib/apt/lists/* WORKDIR /usr/src/hitide COPY Cargo.* ./ COPY src ./src COPY res ./res RUN cargo build --release -FROM alpine:3.12 -RUN apk add --no-cache libgcc openssl +FROM debian:buster-slim +RUN apt-get update \ + && apt-get install -y openssl \ + && rm -rf /var/lib/apt/lists/* COPY --from=builder /usr/src/hitide/target/release/hitide /usr/bin/ CMD ["hitide"] -- 2.45.2