mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
Revert docker as non root PR
This commit is contained in:
parent
0e2f6ba1b6
commit
7649239b08
10
Dockerfile
10
Dockerfile
@ -35,18 +35,12 @@ RUN $HOME/.cargo/bin/cargo build --release
|
|||||||
# Run
|
# Run
|
||||||
FROM alpine:3.14
|
FROM alpine:3.14
|
||||||
|
|
||||||
ARG USER=meili
|
|
||||||
ENV HOME /home/${USER}
|
|
||||||
ENV MEILI_HTTP_ADDR 0.0.0.0:7700
|
ENV MEILI_HTTP_ADDR 0.0.0.0:7700
|
||||||
ENV MEILI_SERVER_PROVIDER docker
|
ENV MEILI_SERVER_PROVIDER docker
|
||||||
|
|
||||||
# download runtime deps as root and create ${USER}
|
|
||||||
RUN apk update --quiet \
|
RUN apk update --quiet \
|
||||||
&& apk add -q --no-cache libgcc tini curl \
|
&& 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 .
|
COPY --from=compiler /meilisearch/target/release/meilisearch .
|
||||||
|
|
||||||
EXPOSE 7700/tcp
|
EXPOSE 7700/tcp
|
||||||
|
Loading…
Reference in New Issue
Block a user