Hello All, I have the below Dockerfile for building Mongo. However it is failing to build every time and not sure what the problem is. As per existing articles, tried to remove sudo, https to http and some other stuff but nothing seems to work.
Could someone please help on this.
FROM ubuntu:16.04
# Import the MongoDB public GPG key
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 20691EEC35216C63CAF66CE1656408E390CFB1F5
# Create a list file for MongoDB
RUN echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
RUN apt-get update && \
ln -s /bin/true /usr/local/bin/systemctl && \
apt-get -y install mongodb-org
WORKDIR /app
COPY . /app
RUN chmod +x execute.sh
ENTRYPOINT ["bash", "execute.sh"]