-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide Docker image as non root #1757
Comments
This comment has been minimized.
This comment has been minimized.
Edit, new issue was created over at #2051 |
Hello everyone, we are having exatcly the same issue in kubernetes. We dont allow any pod to run as root and so I wanted to ask if there is any solution for this? Thanks in advance. |
did any one find a solution? same problem here |
Hi folks, please refer to #2051 instead, and see if you're able to create a pull request. Otherwise you'll have to wait or allow root for that specific container |
Discussed in #1756
Originally posted by igaul October 1, 2021
Hi,
I'd like to request the official docker image run with a non root user, so the final image of Dockerfile would be something like this (what I am using)
`# Run
FROM alpine:3.14
ARG USER=meiliuser
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 .
EXPOSE 7700/tcp
CMD ["tini", "--","./meilisearch"]`
If interested, I would be happy to pr. Have a good weekend!
The text was updated successfully, but these errors were encountered: