changed baseimage to alpine; exposed intel amt port (4433)

Simon Schön committed Jun 7, 2022 at 14:53 UTC 908059a6f5db3fd381727b6f9896d75df257dc4a
1 file changed +3 -12
docker/Dockerfile
+3 -12
@@ -1,6 +1,5 @@
1 -# Filename: Dockerfile
1 +FROM node:current-alpine
2
3 -FROM node:slim
3
4 #Add non-root user, add installation directories and assign proper permissions
5 RUN mkdir -p /opt/meshcentral
@@ -8,15 +7,7 @@ RUN mkdir -p /opt/meshcentral
7 # meshcentral installation
8 WORKDIR /opt/meshcentral
9
11 -# add mongodb repository to apt
12 -RUN apt-get update && apt-get install -y gnupg2 wget
13 -RUN wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | apt-key add -
14 -RUN echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/5.0 main" | tee /etc/apt/sources.list.d/mongodb-org-5.0.list
15 -
16 -# install mongodb
17 -RUN apt-get update \
18 - && apt-get install -y mongodb-org-tools \
19 - && rm -rf /var/lib/apt/lists/*
10 +RUN apk add --no-cache bash
11
12 RUN mkdir /opt/meshcentral/meshcentral
13 COPY ./ /opt/meshcentral/meshcentral/
@@ -38,7 +29,7 @@ RUN cd meshcentral/translate && node translate.js minifyall
29 RUN cd meshcentral/translate && node translate.js translateall
30 RUN cd meshcentral/translate && node translate.js extractall
31
41 -EXPOSE 80 443
32 +EXPOSE 80 443 4433
33
34 # volumes
35 VOLUME /opt/meshcentral/meshcentral-data