diff --git a/docker/Dockerfile b/docker/Dockerfile index c6168e7f98e..e34daa5800a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -34,18 +34,13 @@ RUN npm_config_build_from_source=true npm rebuild @serialport/bindings-cpp RUN [ -d 'dist' ] && echo "Skipping build" || npm run build RUN npm prune --omit=dev && \ - rm -rf \ - package-lock.json \ - build \ - package.sh \ - src \ - api \ - static \ - docs \ - kubernetes \ - test \ - .github \ - .vscode + find . -maxdepth 1 \ + ! -name "node_modules" \ + ! -name ".git" \ + ! -name "package.json" \ + ! -name "server" \ + ! -name "dist" \ + -exec rm -rf {} + # add plugin support, space separated ARG plugins