Comments (3)
I have also tried to build this on my local Mac mini M2 and the build command will not run getting the same error as hub.docker.com even with the env variable set before running. It will work however if I run 'docker compose up' command.
export NEXT_PUBLIC_SALEOR_API_URL=http://localhost:8000/graphql/
=> ERROR [builder 6/6] RUN pnpm build 1.5s
[builder 6/6] RUN pnpm build:
0.475
0.475 > [email protected] prebuild /app
0.475 > pnpm run generate
0.475
0.742
0.742 > [email protected] generate /app
0.742 > graphql-codegen --config .graphqlrc.ts
0.742
1.496 Before GraphQL types can be generated, you need to set NEXT_PUBLIC_SALEOR_API_URL environment variable.
1.496 Follow development instructions in the README.md file.
1.503 ELIFECYCLE Command failed with exit code 1.
1.512 ELIFECYCLE Command failed with exit code 1.
Dockerfile:37
35 | RUN yarn global add pnpm@$PNPM_VERSION
36 |
37 | >>> RUN pnpm build
38 |
39 | # Production image, copy all the files and run next
ERROR: failed to solve: process "/bin/sh -c pnpm build" did not complete successfully: exit code: 1
from storefront.
I've submitted a pull request (#1069) that addresses the issue reported. This pull request aims to resolve the problem related to building the Docker image using Docker Compose.
These simple steps are enough to run the application in the basic version:
git clone https://github.com/saleor/storefront.git .
cp .env.example .env
docker-compose build
docker-compose up
from storefront.
Let me know what stage you are at.
If you still have a problem with this, it seems to me that the machine you are building it on may not have enough free resources.
from storefront.
Related Issues (20)
- Fix spacing in checkout page
- Parametrize GraphQL queries to allow passing channel
- Pass current channel in URL HOT 2
- Order List: Finalise payments for non-paid orders
- Add Dockerfile HOT 1
- Migrate Auth to App Router in Storefront HOT 1
- Check metabase Slack notifiacations and define one for storefront
- Bug: `update types workflow` is missing `schema.graphql`
- Rename current channels to `us` and `eu`
- Can't build the container image during `pnpm build` HOT 8
- Cookie cause bug HOT 1
- The product is still Out Of Stock in a storefront, even if there is 1 item in each warehouse
- Add env variable for default channel HOT 2
- Account login not working HOT 2
- image src not correct
- how to set NEXT_PUBLIC_SALEOR_API_URL HOT 1
- Checkout with logged user from /login page not detected on checkout flow
- can not integrate Web3modal into saleor/storefront adding config file and context file from web3modal make the loading of checkout page fail
- incorrect hostname for :8000 ist used to fetch data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storefront.