-
Notifications
You must be signed in to change notification settings - Fork 431
Open
Labels
Description
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-expressversion: 2.1.3- Node version: 18
- Operating system: windows 11
// Paste any relevant logs here
1.907 npm ERR! Missing script: "build"
1.907 npm ERR!
1.908 npm ERR! To see a list of scripts, run:
1.908 npm ERR! npm run
1.910
1.910 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-12-13T20_37_53_347Z-debug-0.log
------
Dockerfile:9
--------------------
7 | COPY web .
8 | RUN npm install
9 | >>> RUN cd frontend && npm install && npm run build
10 | CMD ["npm", "run", "serve"]
11 |
--------------------
ERROR: failed to solve: process "/bin/sh -c cd frontend && npm install && npm run build" did not complete successfully: exit code: 1
Expected behavior
build the docker image
Actual behavior
error on building image
Steps to reproduce the problem
- run docker build
Reactions are currently unavailable