From 7649239b082c7f795d40a3e2fa5f0841903d3f47 Mon Sep 17 00:00:00 2001 From: Maxime Legendre Date: Tue, 21 Dec 2021 13:38:39 +0100 Subject: [PATCH] Revert docker as non root PR --- Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0431b5f26..ff88d5bc6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,18 +35,12 @@ RUN $HOME/.cargo/bin/cargo build --release # Run FROM alpine:3.14 -ARG USER=meili -ENV HOME /home/${USER} ENV MEILI_HTTP_ADDR 0.0.0.0:7700 ENV MEILI_SERVER_PROVIDER docker -# download runtime deps as root and create ${USER} RUN apk update --quiet \ - && apk add -q --no-cache libgcc tini curl \ - && adduser -D ${USER} -WORKDIR ${HOME} -USER ${USER} -# copy file as ${USER} to ${HOME} + && apk add -q --no-cache libgcc tini curl + COPY --from=compiler /meilisearch/target/release/meilisearch . EXPOSE 7700/tcp