Remove many dependencies from the Dockerfile

This commit is contained in:
Clément Renault 2019-11-28 17:04:01 +01:00
parent 83ad80d9db
commit aed02b2e19
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -4,7 +4,6 @@ FROM alpine:3.10 AS compiler
RUN apk update --quiet RUN apk update --quiet
RUN apk add curl RUN apk add curl
RUN apk add build-base RUN apk add build-base
RUN apk add libressl-dev
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
@ -20,8 +19,7 @@ RUN $HOME/.cargo/bin/cargo build --release
FROM alpine:3.10 FROM alpine:3.10
RUN apk update --quiet RUN apk update --quiet
RUN apk add libressl RUN apk add libgcc
RUN apk add build-base
COPY --from=compiler /meilisearch/target/release/meilisearch . COPY --from=compiler /meilisearch/target/release/meilisearch .