inventaire / docker-inventaire

Docker configuration experiment of https://github.com/inventaire/inventaire
9 stars 0 forks source link

Q: minimal build? #11

Open woj-tek opened 1 year ago

woj-tek commented 1 year ago

I'm trying to create the simplest possible deployable build (just compiled backend/frontend that can be run/served, with the idea to create the simplest docker image as per https://nodejs.org/en/docs/guides/nodejs-docker-webapp).

I tried following steps in https://github.com/inventaire/docker-inventaire#install but it doesn't feel very Docker-ish and while trying to run resulting image I got bunch of errors:

$ docker run --rm wojtek/inventaire
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path //package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '//package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/node/.npm/_logs/2023-07-31T08_01_41_390Z-debug-0.log
maxlath commented 11 months ago

It is indeed not very docker-ish, as that setup is currently optimized for development; thus the manual git clone on the host machine, which eases future git ops. I gave it a quick look, but it does require more work than I hoped, so I'll leave it there for now, but we plan to work on a prod package in the effort to promote decentralization in the coming months.