mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 00:55:00 +08:00
Remove many dependencies from the Dockerfile
This commit is contained in:
parent
83ad80d9db
commit
aed02b2e19
@ -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 .
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user