mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-05-21 17:43:46 -04:00
changed installation of mongodb-tools to optional
This commit is contained in:
parent
908059a6f5
commit
0b11aa9392
@ -1,5 +1,6 @@
|
|||||||
FROM node:current-alpine
|
FROM node:current-alpine
|
||||||
|
|
||||||
|
ARG INCLUDE_MONGODBTOOLS=""
|
||||||
|
|
||||||
#Add non-root user, add installation directories and assign proper permissions
|
#Add non-root user, add installation directories and assign proper permissions
|
||||||
RUN mkdir -p /opt/meshcentral
|
RUN mkdir -p /opt/meshcentral
|
||||||
@ -8,6 +9,7 @@ RUN mkdir -p /opt/meshcentral
|
|||||||
WORKDIR /opt/meshcentral
|
WORKDIR /opt/meshcentral
|
||||||
|
|
||||||
RUN apk add --no-cache bash
|
RUN apk add --no-cache bash
|
||||||
|
RUN if [ "$INCLUDE_MONGODBTOOLS" == "yes" ] || [ "$INCLUDE_MONGODBTOOLS" == "YES" ]; then apk add --no-cache mongodb-tools; fi
|
||||||
|
|
||||||
RUN mkdir /opt/meshcentral/meshcentral
|
RUN mkdir /opt/meshcentral/meshcentral
|
||||||
COPY ./ /opt/meshcentral/meshcentral/
|
COPY ./ /opt/meshcentral/meshcentral/
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
> docker build -f docker/Dockerfile --force-rm -t meshcentral .
|
> docker build -f docker/Dockerfile --force-rm -t meshcentral .
|
||||||
|
|
||||||
|
# alternative, if you want to include the mongodb-tools (mongodump, ...), you can add the 'INCLUDE_MONGODBTOOLS=yes' build argument
|
||||||
|
> docker build -f docker/Dockerfile --force-rm --build-arg INCLUDE_MONGODBTOOLS=yes -t meshcentral .
|
||||||
|
|
||||||
# (optional) cleanup after docker build:
|
# (optional) cleanup after docker build:
|
||||||
> cd ..
|
> cd ..
|
||||||
> rm -rf MeshCentral/
|
> rm -rf MeshCentral/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user