This repository was archived by the owner on Sep 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 1.31 KB
/
Copy pathDockerfile
File metadata and controls
30 lines (22 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM ubuntu:20.04
##Keeps package "tzdata" from throwing a prompt when upgrading, which prevents the running of the software. Be sure to set the environment variable "TZ=America/Los_Angeles" or it will still prompt.
ARG DEBIAN_FRONTEND=noninteractive
run apt-get update
run apt-get install -y apt-utils
run apt-get install -y wget
run apt-get install -y gnupg
run apt-get install -y curl
run wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | apt-key add -
run echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-5.0.list
run apt-get update -y && apt-get upgrade -y && apt-get autoremove -y && apt-get autoclean -y
run apt-get install -y nodejs && apt-get autoremove -y && apt-get autoclean -y
run apt-get install -y mongodb-org mongodb-org-tools && rm -rf /var/log/mongodb/mongod.log && mkdir /var/lib/mongo && apt-get autoremove -y && apt-get autoclean -y
run apt-get install -y npm && apt-get autoremove -y && apt-get autoclean -y
run apt-get install -y screen && apt-get autoremove -y && apt-get autoclean -y
run npm install archiver@4.0.2
run npm install otplib@10.2.3
run npm install mongodb@4.1.0
run npm install meshcentral
ADD MeshCentral_Exec.sh /
run chmod +x /MeshCentral_Exec.sh
ENTRYPOINT ["/MeshCentral_Exec.sh"]