Skip to content

Conversation

@santana
Copy link
Contributor

@santana santana commented Aug 6, 2025

Overview

The motivation is to be able to have a quick and easy way to get Newspeak working on multiple platforms and because the existing platforms/docker/Dockerfile has too many deficiencies.

This new attempt has the following benefits:

  • it is multi-stage docker build, meaning that we
  • drops root privilege as soon as possible
  • reduces the size of the image significantly
  • builds are efficient and fast because of Docker caching what doesn't need to be rebuilt.

Usage

Note

If you are already on Linux/amd64 then you don't need the --platform linux/amd64 option.

  1. Build image
docker build --platform linux/amd64 -t nsapp --target final .
  1. Run container
docker run --platform linux/amd64 -p 8080:8080 nsapp
  1. Access the application.

Point your browser to http://localhost:8080/ to see the files available or point it directly to the IDE http://localhost:8080/primordialsoup.html?snapshot=HopscotchWebIDE.vfuel

Issues

Even though I took the build and deployment instructions from the different scripts under the tools directory it is raising the errors shown in the screenshots.

Screenshot 2025-08-06 at 5 15 39 PM Screenshot 2025-08-06 at 5 16 16 PM

I have inspected primordialsoup.js and it includes the writeArrayToMemory() function. You can do the same by running:

docker exec  -it nsapp  /bin/bash  

@santana santana marked this pull request as ready for review August 6, 2025 23:14
@santana santana marked this pull request as draft August 6, 2025 23:14
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

Successfully merging this pull request may close these issues.

1 participant