Create Dockerfile
Einar Stenberg committed
Nov 2, 2021 at 14:54 UTC
cd090691ccab5f606e1de80a5704d3071d82ab50
1 file changed
+29
Dockerfile
new
+29
@@ -0,0 +1,29 @@
1
+# Filename: Dockerfile
2
+
3
+FROM ubuntu:latest
4
+
5
+# Disable Prompt During Packages Installation
6
+ARG DEBIAN_FRONTEND=noninteractive
7
+
8
+#install dependencies
9
+RUN apt-get update && apt-get install -y nodejs npm nano
10
+
11
+#Add non-root user, add installation directories and assign proper permissions
12
+RUN mkdir -p /opt/meshcentral
13
+
14
+#meshcentral installation
15
+WORKDIR /opt/meshcentral
16
+
17
+RUN npm install meshcentral
18
+
19
+COPY config.json.template /opt/meshcentral/config.json.template
20
+COPY startup.sh startup.sh
21
+#environment variables
22
+
23
+EXPOSE 80 443
24
+
25
+#volumes
26
+VOLUME /opt/meshcentral/meshcentral-data
27
+VOLUME /opt/meshcentral/meshcentral-files
28
+
29
+CMD ["bash","/opt/meshcentral/startup.sh"]