Open alexisrolland opened 3 years ago
To build the images, you need to run the build script. This is documented, but it's right at the bottom of the README so pretty easy to miss. Run the following commands in your shell:
yarn install
./bin/build.js
You can get help on the build script using:
./bin/build.js
Hello and thank you for building Strapi. It looks awesome.
I'm building a custom Docker image based on the file: https://github.com/strapi/strapi-docker/blob/master/examples/custom/Dockerfile
The command
RUN yarn build
triggers the error message:Research on StackOverflow points out this is because the file
package.json
is lacking thebuild
key: https://stackoverflow.com/questions/55789355/build-node-js-app-using-yarn-but-getting-error-command-build-not-foundI think this is because I reused the whole code base from the root of the repo here: https://github.com/strapi/strapi-docker And indeed the
package.json
does not contain much: https://github.com/strapi/strapi-docker/blob/master/package.jsonThank you
PS: I cannot use the prebuilt image
strapi/strapi
due to network restrictions in my environment which prevents me to download dependencies from the public NPM registry.