🐳 🐛 Fix SSL depends for Docker build

main
_ 2020-11-02 18:10:58 +00:00
parent 0a3ca71c2d
commit d41422ac6e
2 changed files with 5 additions and 2 deletions

4
.gitignore vendored
View File

@ -1,3 +1,5 @@
/target
/Cargo.lock
/old-git.tar.gz
/ptth_server.toml
/ptth_relay.toml
/target

View File

@ -3,7 +3,7 @@ FROM rust:1.47-slim-buster as build
WORKDIR /usr/src
RUN apt-get update \
&& apt-get install -y git pkg-config
&& apt-get install -y git pkg-config libssl-dev
# Make sure the dependencies are all cached so we won't hammer crates.io
@ -28,6 +28,7 @@ RUN git checkout "$gitcommithash" \
FROM debian:buster-slim as deploy
RUN apt-get update \
&& apt-get install -y libssl1.1 ca-certificates \
&& apt-get upgrade
COPY --from=build /usr/src/target/release/ptth_relay /root