Update Dockerfile

switch to node slim, 50% file size reduction!
This commit is contained in:
Simon Smith 2022-05-21 21:29:40 +01:00 committed by GitHub
parent 42441c1a74
commit 915fb3bf15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,6 @@
# 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
FROM node:slim
#Add non-root user, add installation directories and assign proper permissions
RUN mkdir -p /opt/meshcentral