mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 21:04:27 +01:00
2 RUNs less.
This commit is contained in:
parent
23458de588
commit
4c50deb4b7
@ -1,8 +1,8 @@
|
|||||||
# Compile
|
# Compile
|
||||||
FROM alpine:3.14 AS compiler
|
FROM alpine:3.14 AS compiler
|
||||||
|
|
||||||
RUN apk update --quiet
|
RUN apk update --quiet \
|
||||||
RUN apk add -q --no-cache curl build-base
|
&& apk add -q --no-cache curl build-base
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
@ -39,7 +39,8 @@ ENV HOME /home/${USER}
|
|||||||
ENV MEILI_HTTP_ADDR 0.0.0.0:7700
|
ENV MEILI_HTTP_ADDR 0.0.0.0:7700
|
||||||
|
|
||||||
# download runtime deps as root and create ${USER}
|
# download runtime deps as root and create ${USER}
|
||||||
RUN apk add -q --no-cache libgcc tini curl \
|
RUN apk update --quiet \
|
||||||
|
&& apk add -q --no-cache libgcc tini curl \
|
||||||
&& adduser -D ${USER}
|
&& adduser -D ${USER}
|
||||||
WORKDIR ${HOME}
|
WORKDIR ${HOME}
|
||||||
USER ${USER}
|
USER ${USER}
|
||||||
|
Loading…
Reference in New Issue
Block a user