You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
695 B
29 lines
695 B
# Filename: Dockerfile |
|
|
|
FROM ubuntu:latest |
|
|
|
# Disable Prompt During Packages Installation |
|
ARG DEBIAN_FRONTEND=noninteractive |
|
|
|
#install dependencies |
|
RUN apt-get update && apt-get install -y nodejs npm nano && rm -rf /var/lib/apt/lists/* |
|
|
|
#Add non-root user, add installation directories and assign proper permissions |
|
RUN mkdir -p /opt/meshcentral |
|
|
|
#meshcentral installation |
|
WORKDIR /opt/meshcentral |
|
|
|
RUN npm install meshcentral |
|
|
|
COPY config.json.template /opt/meshcentral/config.json.template |
|
COPY startup.sh startup.sh |
|
#environment variables |
|
|
|
EXPOSE 80 4430 |
|
|
|
#volumes |
|
VOLUME /opt/meshcentral/meshcentral-data |
|
VOLUME /opt/meshcentral/meshcentral-files |
|
|
|
CMD ["bash","/opt/meshcentral/startup.sh"]
|
|
|