Git Product home page Git Product logo

Comments (3)

jdmueller avatar jdmueller commented on June 4, 2024

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.

tgrycuk avatar tgrycuk commented on June 4, 2024

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.

tgrycuk avatar tgrycuk commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.