From 188c9e4593df877a8774aa2fa8600b6e065a0e9d Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Fri, 23 Oct 2020 22:55:59 -0400 Subject: [PATCH] put curl into final build image; less hacky (maybe?) --- Dockerfile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fe953a9..dcfce28 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,11 +28,22 @@ RUN $HOME/.cargo/bin/cargo build --release # Final image FROM ubuntu:xenial WORKDIR / + +# CURL +RUN apt-get update \ + && apt-get install -y \ + build-essential \ + curl \ + libsodium-dev \ + libssl-dev \ + libssl1.0.0 \ + && apt-get clean + # SSL certs are required to make requests COPY --from=build /etc/ssl /etc/ssl # Shared libs are necessary -COPY --from=build /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu -COPY --from=build /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu +#COPY --from=build /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu +#COPY --from=build /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu #COPY --from=build /tmp/target/debug/discord-vocodes / COPY --from=build /tmp/target/release/discord-vocodes / COPY --from=build /tmp/script /