Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q: minimal build? #11

Open
woj-tek opened this issue Jul 31, 2023 · 1 comment
Open

Q: minimal build? #11

woj-tek opened this issue Jul 31, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@woj-tek
Copy link

woj-tek commented Jul 31, 2023

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 maxlath transferred this issue from inventaire/inventaire Oct 21, 2023
@maxlath maxlath added the bug Something isn't working label Oct 21, 2023
@maxlath
Copy link
Member

maxlath commented Oct 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants