From 2ef58ccce9a5016f8563f4bfd8c73c5dda322582 Mon Sep 17 00:00:00 2001 From: "gaul@pdx.edu" Date: Sat, 2 Oct 2021 10:59:01 -0700 Subject: [PATCH] Fix formatting --- Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 66a3ba484..49f33446f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,16 +36,16 @@ RUN $HOME/.cargo/bin/cargo build --release FROM alpine:3.14 ARG USER=meiliuser -ENV HOME /home/$USER +ENV HOME /home/${USER} ENV MEILI_HTTP_ADDR 0.0.0.0:7700 -# download runtime deps as root and create $USER -RUN apk add -q --no-cache libgcc tini curl \ - && adduser -D $USER -WORKDIR $HOME -USER $USER -# copy file as $USER to $HOME -COPY --from=compiler /meilisearch/target/release/meilisearch . +# download runtime deps as root and create ${USER} +RUN apk add -q --no-cache libgcc tini curl \ + && adduser -D ${USER} +WORKDIR ${HOME} +USER ${USER} +# copy file as ${USER} to ${HOME} +COPY --from=compiler /meilisearch/target/release/meilisearch . EXPOSE 7700/tcp