Open madelacerda opened 11 months ago
Hi @madelacerda, what is the content of package.json inside frontend
?
Hi @matteodepalo ! my package.json looks like this: { "name": "shopify-app-template-node", "version": "1.0.0", "private": true, "license": "UNLICENSED", "scripts": { "debug": "node --inspect-brk index.js", "dev": "cross-env NODE_ENV=development nodemon index.js --ignore ./frontend", "serve": "cross-env NODE_ENV=production node index.js" }, "type": "module", "engines": { "node": ">=14.13.1" }, "dependencies": { "@shopify/shopify-app-express": "^2.1.3", "@shopify/shopify-app-session-storage-sqlite": "^1.2.3", "compression": "^1.7.4", "cross-env": "^7.0.3", "serve-static": "^1.14.1" }, "devDependencies": { "nodemon": "^2.0.15", "prettier": "^2.6.2", "pretty-quick": "^3.1.3" } }
That seems to be the package.json inside web
, but what about web/frontend
? I see in the Dockerfile we copy web
in .
so frontend
should become something you can cd
into.
That seems to be the package.json inside
web
, but what aboutweb/frontend
? I see in the Dockerfile we copyweb
in.
sofrontend
should become something you cancd
into.
inside my web frontend there is no package, i just added there a index.html with an iframe, i just wanna build the docker image for this node project so we can deploy it in AWS, but im having this issue with the dockerfile. because right now i have 2 package.json one on the root of the project and the one insisde web
What about trying to change the Dockerfile to not cd into frontend
and simply call build
at the top level?
hello all!
i just downlaoded this template to work on a node project for shopify but when im trying to build the docker image to deploy this project into our services on AWS, im getting the error that there is no script for the build command inside my package. and after checking the package inside the front there is no build command, so why the dockerfile uses that command on the line: RUN cd frontend && npm install && npm run build?
@shopify/shopify-app-express
version: 2.1.3Expected behavior
build the docker image
Actual behavior
error on building image
Steps to reproduce the problem