Closed shm-eboks closed 10 months ago
Thanks!
For couple of days I've had a feeling that I forgot about something....
Now I remember: npm ci --only=prodution
Thanks again for your contribution. I will try to change it after Easter Break.
Thanks for your suggestions!
tried to push a branch, for you to evaluate, no permissions - so ill post it here:
dockerfile i've succesfully managed to update and run the rest api image under node:19, add below to dockerfile
you should strongly consider using the official npm installer for idempotent images, replace your
with:
note: why - here https://docs.npmjs.com/cli/v9/commands/npm-ci note: this will also fail on the current node version, so do upgrade to the latest node:19
reason to why you had to rollback the previous commit/image if you attempt to run docker compose without the proper env variable APP_MAX_FILE_SIZE set, clamd will response with garbage. This is also why it was working when running it "locally"
example, if you enable node-clam debug flag and run without this env variable set:
fix, add to docker-compose.yml, (it already exists in your .env.example):
in any case - if this config is ommitted - it will yield a 'null'-result returned from the scanner endpoint
updated packages you can freely bump the following packages, as it will build and run: