Add mg user in Dockerfile
This commit is contained in:
parent
344ea44f91
commit
679a70fe7e
@ -21,4 +21,8 @@ RUN git clone https://github.com/memgraph/memgraph.git \
|
|||||||
&& ./environment/os/amzn-2.sh install MEMGRAPH_BUILD_DEPS \
|
&& ./environment/os/amzn-2.sh install MEMGRAPH_BUILD_DEPS \
|
||||||
&& cd .. && rm -rf memgraph
|
&& cd .. && rm -rf memgraph
|
||||||
|
|
||||||
|
# Create mg user and set as default
|
||||||
|
RUN useradd -m -s /bin/bash mg
|
||||||
|
USER mg
|
||||||
|
|
||||||
ENTRYPOINT ["sleep", "infinity"]
|
ENTRYPOINT ["sleep", "infinity"]
|
||||||
|
@ -20,4 +20,8 @@ RUN git clone https://github.com/memgraph/memgraph.git \
|
|||||||
&& ./environment/os/centos-7.sh install MEMGRAPH_BUILD_DEPS \
|
&& ./environment/os/centos-7.sh install MEMGRAPH_BUILD_DEPS \
|
||||||
&& cd .. && rm -rf memgraph
|
&& cd .. && rm -rf memgraph
|
||||||
|
|
||||||
|
# Create mg user and set as default
|
||||||
|
RUN useradd -m -s /bin/bash mg
|
||||||
|
USER mg
|
||||||
|
|
||||||
ENTRYPOINT ["sleep", "infinity"]
|
ENTRYPOINT ["sleep", "infinity"]
|
||||||
|
@ -20,4 +20,8 @@ RUN git clone https://github.com/memgraph/memgraph.git \
|
|||||||
&& ./environment/os/centos-9.sh install MEMGRAPH_BUILD_DEPS \
|
&& ./environment/os/centos-9.sh install MEMGRAPH_BUILD_DEPS \
|
||||||
&& cd .. && rm -rf memgraph
|
&& cd .. && rm -rf memgraph
|
||||||
|
|
||||||
|
# Create mg user and set as default
|
||||||
|
RUN useradd -m -s /bin/bash mg
|
||||||
|
USER mg
|
||||||
|
|
||||||
ENTRYPOINT ["sleep", "infinity"]
|
ENTRYPOINT ["sleep", "infinity"]
|
||||||
|
@ -23,4 +23,8 @@ RUN git clone https://github.com/memgraph/memgraph.git \
|
|||||||
&& ./environment/os/debian-10.sh install MEMGRAPH_BUILD_DEPS \
|
&& ./environment/os/debian-10.sh install MEMGRAPH_BUILD_DEPS \
|
||||||
&& cd .. && rm -rf memgraph
|
&& cd .. && rm -rf memgraph
|
||||||
|
|
||||||
|
# Create mg user and set as default
|
||||||
|
RUN useradd -m -s /bin/bash mg
|
||||||
|
USER mg
|
||||||
|
|
||||||
ENTRYPOINT ["sleep", "infinity"]
|
ENTRYPOINT ["sleep", "infinity"]
|
||||||
|
@ -23,4 +23,8 @@ RUN git clone https://github.com/memgraph/memgraph.git \
|
|||||||
&& ./environment/os/debian-12-arm.sh install MEMGRAPH_BUILD_DEPS \
|
&& ./environment/os/debian-12-arm.sh install MEMGRAPH_BUILD_DEPS \
|
||||||
&& cd .. && rm -rf memgraph
|
&& cd .. && rm -rf memgraph
|
||||||
|
|
||||||
|
# Create mg user and set as default
|
||||||
|
RUN useradd -m -s /bin/bash mg
|
||||||
|
USER mg
|
||||||
|
|
||||||
ENTRYPOINT ["sleep", "infinity"]
|
ENTRYPOINT ["sleep", "infinity"]
|
||||||
|
@ -21,4 +21,8 @@ RUN git clone https://github.com/memgraph/memgraph.git \
|
|||||||
&& ./environment/os/fedora-36.sh install MEMGRAPH_BUILD_DEPS \
|
&& ./environment/os/fedora-36.sh install MEMGRAPH_BUILD_DEPS \
|
||||||
&& cd .. && rm -rf memgraph
|
&& cd .. && rm -rf memgraph
|
||||||
|
|
||||||
|
# Create mg user and set as default
|
||||||
|
RUN useradd -m -s /bin/bash mg
|
||||||
|
USER mg
|
||||||
|
|
||||||
ENTRYPOINT ["sleep", "infinity"]
|
ENTRYPOINT ["sleep", "infinity"]
|
||||||
|
@ -21,4 +21,8 @@ RUN git clone https://github.com/memgraph/memgraph.git \
|
|||||||
&& ./environment/os/fedora-38.sh install MEMGRAPH_BUILD_DEPS \
|
&& ./environment/os/fedora-38.sh install MEMGRAPH_BUILD_DEPS \
|
||||||
&& cd .. && rm -rf memgraph
|
&& cd .. && rm -rf memgraph
|
||||||
|
|
||||||
|
# Create mg user and set as default
|
||||||
|
RUN useradd -m -s /bin/bash mg
|
||||||
|
USER mg
|
||||||
|
|
||||||
ENTRYPOINT ["sleep", "infinity"]
|
ENTRYPOINT ["sleep", "infinity"]
|
||||||
|
@ -21,4 +21,8 @@ RUN git clone https://github.com/memgraph/memgraph.git \
|
|||||||
&& ./environment/os/fedora-39.sh install MEMGRAPH_BUILD_DEPS \
|
&& ./environment/os/fedora-39.sh install MEMGRAPH_BUILD_DEPS \
|
||||||
&& cd .. && rm -rf memgraph
|
&& cd .. && rm -rf memgraph
|
||||||
|
|
||||||
|
# Create mg user and set as default
|
||||||
|
RUN useradd -m -s /bin/bash mg
|
||||||
|
USER mg
|
||||||
|
|
||||||
ENTRYPOINT ["sleep", "infinity"]
|
ENTRYPOINT ["sleep", "infinity"]
|
||||||
|
@ -21,4 +21,8 @@ RUN git clone https://github.com/memgraph/memgraph.git \
|
|||||||
&& ./environment/os/rocky-9.sh install MEMGRAPH_BUILD_DEPS \
|
&& ./environment/os/rocky-9.sh install MEMGRAPH_BUILD_DEPS \
|
||||||
&& cd .. && rm -rf memgraph
|
&& cd .. && rm -rf memgraph
|
||||||
|
|
||||||
|
# Create mg user and set as default
|
||||||
|
RUN useradd -m -s /bin/bash mg
|
||||||
|
USER mg
|
||||||
|
|
||||||
ENTRYPOINT ["sleep", "infinity"]
|
ENTRYPOINT ["sleep", "infinity"]
|
||||||
|
@ -23,4 +23,8 @@ RUN git clone https://github.com/memgraph/memgraph.git \
|
|||||||
&& ./environment/os/ubuntu-18.04.sh install MEMGRAPH_BUILD_DEPS \
|
&& ./environment/os/ubuntu-18.04.sh install MEMGRAPH_BUILD_DEPS \
|
||||||
&& cd .. && rm -rf memgraph
|
&& cd .. && rm -rf memgraph
|
||||||
|
|
||||||
|
# Create mg user and set as default
|
||||||
|
RUN useradd -m -s /bin/bash mg
|
||||||
|
USER mg
|
||||||
|
|
||||||
ENTRYPOINT ["sleep", "infinity"]
|
ENTRYPOINT ["sleep", "infinity"]
|
||||||
|
Loading…
Reference in New Issue
Block a user