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

Trying to run your code in docker #40

Open
olituks opened this issue Jun 14, 2024 · 0 comments
Open

Trying to run your code in docker #40

olituks opened this issue Jun 14, 2024 · 0 comments

Comments

@olituks
Copy link

olituks commented Jun 14, 2024

Hello, I trying to run your code in docker but I have an issue.
If you can provide some guidance it will be appreciate.

My docker compose
version: "3"
services:
node:
image: "arm64v8/ubuntu"
stdin_open: true
tty: true
#user: "node"
environment:
- NODE_ENV=production
volumes:
- nfs-wm-selector-data:/home/node/app
working_dir: /home/node/app
expose:
- "8080"
ports:
- "8080:8080"
networks:
- wm-selector_default
labels:
io.portainer.accesscontrol.users: "public"
networks:
wm-selector_default:
driver: bridge
volumes:
nfs-wm-selector-data:
external: true

Via the console attached to the container I setup the environment:
- cd wm-selector/
- apt update
- apt install nodejs
- apt install npm
- npm ci
- npm run serve

I get this error

wm-selector@3.6.0 preserve
node scripts/build-src-json.js

/home/node/app/wm-selector/scripts/build-src-json.js:34
glob('public/json/**/*.json', (error, fileNames) => {
^

TypeError: glob is not a function
at Object. (/home/node/app/wm-selector/scripts/build-src-json.js:34:1)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49

Node.js v18.19.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant