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

[BUG]: The used docker image does not come with node #5

Open
karstenpedersen opened this issue Nov 5, 2024 · 0 comments
Open

[BUG]: The used docker image does not come with node #5

karstenpedersen opened this issue Nov 5, 2024 · 0 comments

Comments

@karstenpedersen
Copy link

The created Dockerfile from npm init jolie@latest uses jolielang/jolie:1.12.1 image, but it does not come with npm so it fails when it runs npm start.

Building the image and running it:

docker build -t test .
 docker run test

Gives the following output:

/__cacert_entrypoint.sh: line 30: exec: npm: not found

Dockerfile:

FROM jolielang/jolie:1.12.1

WORKDIR /app
COPY . .

EXPOSE 8080

CMD ["npm", "start"]

This is the output from running npm init jolie@latest:

npm init jolie@latest

> npx
> create-jolie

Unable to locate local Jolie installation, fetching the latest version...
Found version 1.12.1, consider downloading it from: https://www.jolie-lang.org/downloads.html
Start creating a Jolie project.
? Package name gg
? Version 0.0.0
? Package description
? Git repository URL
? Package keywords (comma-delimited)
? Author karsten
? License ISC
? Module file name main.ol
? Project template Service
? Service name Gg
? Implementation language Jolie
? Do you want a "watch" script for live development (hot reload)? Yes
? Do you want to use the Jot testing suite? Yes

? Do you want a devcontainer configuration for Visual Studio Code? Yes
? Do you want a Dockerfile? Yes
? Container listening port 8080
   create package.json
    force .yo-rc.json
   create main.ol
   create jot.json
   create test/test.ol
   create .devcontainer/devcontainer.json
   create Dockerfile
Adding jpm related fields to current working directory
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported

> [email protected] postinstall
> jpm install


added 275 packages, and audited 276 packages in 11s

84 packages are looking for funding
  run `npm fund` for details

3 moderate severity vulnerabilities

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

Changes to package.json were detected.
Skipping package manager install.

┌─────────────────────────────────────┐
│                                     │
│   🎇 Jolie project initialized 🎆   │
│                                     │
└─────────────────────────────────────┘
    force .yo-rc.json
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