Fix formatting

This commit is contained in:
gaul@pdx.edu 2021-10-02 10:59:01 -07:00
parent 4009804221
commit 2ef58ccce9
1 changed files with 8 additions and 8 deletions

View File

@ -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