diff --git a/.dockerignore b/.dockerignore index 40a0eb7..076e4b3 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,17 +1,11 @@ * +!*.json +!*.html +!*.js +!*.sh +!*.md !config -!db -!docker-compose.yml -!Dockerfile -!entrypoint.sh -!face.js !frontend -!package.json -!package-lock.json -!password.js -!query.sh -!README.md -!reset-db.sh !server !scanner !src @@ -19,6 +13,8 @@ !ketrface !client !scripts +!Dockerfile +!entrypoint.sh client/node_modules server/node_modules diff --git a/Dockerfile b/Dockerfile index a500626..88a03a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,9 @@ RUN DEBIAN_FRONTEND=NONINTERACTIVE apt-get install -y \ # Upgrade Node RUN wget -qO- https://deb.nodesource.com/setup_18.x | bash - +RUN DEBIAN_FRONTEND=NONINTERACTIVE apt-get install -y \ + nodejs + # Install the latest npm and npx RUN npm install --global npm@latest @@ -46,7 +49,6 @@ RUN DEBIAN_FRONTEND=NONINTERACTIVE apt-get install -y \ sqlite3 \ python2 \ jhead \ - nodejs \ jq \ nano \ shellinabox \