lirantal / is-website-vulnerable

finds publicly known security vulnerabilities in a website's frontend JavaScript libraries
Apache License 2.0
1.94k stars 111 forks source link

Improve Dockerfile and README #64

Closed NicolasCARPi closed 4 years ago

NicolasCARPi commented 4 years ago

Description

This set of changes reduces the Docker image size by 30 Mb.

Types of changes

Related Issue

Fix #63

Motivation and Context

Using specialized docker image is always better than to install node on a normal image. Using the unprivileged node user is better than using root user. Reducing docker image size is also good. Improving the documentation on the usage too.

How Has This Been Tested?

This was tested by running the Docker commands.

Checklist:

koala

lirantal commented 4 years ago

What a great idea and well-put Pull Request. Thank you @NicolasCARPi P.S. the wombat is great, all of our prayers with them 🙏

NicolasCARPi commented 4 years ago

What do you mean "wombat", it's a koala! :koala: :smile:

lirantal commented 4 years ago

Them too lol 😆

Look at this gem I found:

Koalas are more closely related to kangaroos and wombats, which are both members of 
Diprotodontia, than bears, which belong to the order Carnivora
lirantal commented 4 years ago

btw pushed image to docker hub too now

github-actions[bot] commented 4 years ago

:tada: This PR is included in version 1.11.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

NicolasCARPi commented 4 years ago

The docker run line in the README should be modified to have :latest instead of :1.0 at the end. Given that submitting a PR is a quite heavy process, can I let you do this quick edit? :)

lirantal commented 4 years ago

Oh yes, good catch!

lirantal commented 4 years ago

Fixed

NicolasCARPi commented 4 years ago

ok so while you're here and very reactive, the sentence on CONTRIBUTING: Make sure you the code you're adding has an extra word ;)

lirantal commented 4 years ago

Done! That template needs a change too, I'll fix it in as well https://github.com/lirantal/create-node-lib