GalaxyTab commited on
Commit
37161fa
·
1 Parent(s): 44ad32f

Another change to the DockerFile for it to work

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -1
Dockerfile CHANGED
@@ -25,7 +25,6 @@ RUN apt-get update && apt-get install -y \
25
  liblzma5 \
26
  libldap-2.5-0 \
27
  libldap-common \
28
- mongodb-database-tools \
29
  && rm -rf /var/lib/apt/lists/*
30
 
31
  ARG MONGO_VERSION=7.0.24
@@ -38,6 +37,15 @@ RUN curl -fsSL "${MONGO_TARBALL_URL}" -o /tmp/mongodb.tgz \
38
  && ln -s /opt/mongodb/bin/mongos /usr/local/bin/mongos \
39
  && rm /tmp/mongodb.tgz
40
 
 
 
 
 
 
 
 
 
 
41
  COPY --chown=user . /app
42
 
43
  USER user
 
25
  liblzma5 \
26
  libldap-2.5-0 \
27
  libldap-common \
 
28
  && rm -rf /var/lib/apt/lists/*
29
 
30
  ARG MONGO_VERSION=7.0.24
 
37
  && ln -s /opt/mongodb/bin/mongos /usr/local/bin/mongos \
38
  && rm /tmp/mongodb.tgz
39
 
40
+ ARG MONGO_TOOLS_VERSION=100.9.4
41
+ ARG MONGO_TOOLS_URL=https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2204-x86_64-${MONGO_TOOLS_VERSION}.tgz
42
+
43
+ RUN curl -fsSL "${MONGO_TOOLS_URL}" -o /tmp/mongo-tools.tgz \
44
+ && tar -xzf /tmp/mongo-tools.tgz -C /opt \
45
+ && ln -s /opt/mongodb-database-tools-ubuntu2204-x86_64-${MONGO_TOOLS_VERSION}/bin/mongodump /usr/local/bin/mongodump \
46
+ && ln -s /opt/mongodb-database-tools-ubuntu2204-x86_64-${MONGO_TOOLS_VERSION}/bin/mongorestore /usr/local/bin/mongorestore \
47
+ && rm /tmp/mongo-tools.tgz
48
+
49
  COPY --chown=user . /app
50
 
51
  USER user