anuj commited on
Commit
f207cfd
·
1 Parent(s): bf831b3
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -3,6 +3,7 @@ FROM ubuntu:latest
3
  # Install essential packages
4
  RUN apt-get update && apt-get install -y \
5
  curl \
 
6
  gnupg \
7
  build-essential \
8
  graphicsmagick
@@ -11,12 +12,15 @@ RUN apt-get update && apt-get install -y \
11
  RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
12
  apt-get install -y nodejs
13
 
14
- # Install MongoDB
15
  RUN curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
16
  gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg \
17
  --dearmor \
18
  && echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/8.0 multiverse" | \
19
  tee /etc/apt/sources.list.d/mongodb-org-8.0.list \
 
 
 
20
  && apt-get update \
21
  && apt-get install -y mongodb-org
22
 
 
3
  # Install essential packages
4
  RUN apt-get update && apt-get install -y \
5
  curl \
6
+ wget \
7
  gnupg \
8
  build-essential \
9
  graphicsmagick
 
12
  RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
13
  apt-get install -y nodejs
14
 
15
+ # Install MongoDB and dependencies
16
  RUN curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
17
  gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg \
18
  --dearmor \
19
  && echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/8.0 multiverse" | \
20
  tee /etc/apt/sources.list.d/mongodb-org-8.0.list \
21
+ && wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb \
22
+ && dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb \
23
+ && rm libssl1.1_1.1.1f-1ubuntu2_amd64.deb \
24
  && apt-get update \
25
  && apt-get install -y mongodb-org
26