Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Can not build the docker image locally #365

Open
ChanryLimmy opened this issue Nov 8, 2023 · 0 comments
Open

[BUG]: Can not build the docker image locally #365

ChanryLimmy opened this issue Nov 8, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ChanryLimmy
Copy link

Issue description

Yeap, the step is clone and docker build as the readme file said.
As you can see, it failed.
I haven't figured out how it works yet, but I don't think that should be a barrier for me to try and use it.
Here are some logs:

❯ sudo docker build -t jsoncrack .                                                                                                                                                                                                                                                      

Sending build context to Docker daemon  137.5MB
Step 1/9 : FROM node:18-alpine as builder
 ---> d1517ab6615b
Step 2/9 : WORKDIR /src
 ---> Using cache
 ---> 155556aa2316
Step 3/9 : COPY package.json yarn.lock ./
 ---> Using cache
 ---> b58e5b8c91a9
Step 4/9 : RUN yarn install --frozen-lockfile
 ---> Using cache
 ---> 93dfabc9b35f
Step 5/9 : COPY . /src/
 ---> Using cache
 ---> f585a4131eb9
Step 6/9 : RUN yarn build
 ---> Running in 8594f29a69fb
yarn run v1.22.19
$ next build
- info Loaded env from /src/.env.production
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry

- info Linting and checking validity of types...
- info Creating an optimized production build...
error - No Sentry auth token configured. Source maps will not be uploaded.
You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/
After generating a Sentry auth token, set it via the SENTRY_AUTH_TOKEN environment variable during the build.

- info Compiled successfully
- info Collecting page data...
- info Generating static pages (0/13)
- info Generating static pages (3/13)
- info Generating static pages (6/13)
- info Generating static pages (9/13)

Error occurred prerendering page "/oss". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11372:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async getStaticProps$1 (/src/.next/server/pages/oss.js:127:17)
- info Generating static pages (13/13)

> Export encountered errors on following paths:
        /oss
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The command '/bin/sh -c yarn build' returned a non-zero code: 1

yarn dev seems ok.

btw, what is the sentry auth token for?

Media & Screenshots

No response

Operating system

  • OS:ubuntu server 22.04.3 LTS (64bit)

And some of the host env info:

❯ yarn --version                                                                                                                                                                                                                                                                        
1.22.19


❯ npm --version                                                                                                                                                                                                                                                                         
10.1.0


❯ node --version                                                                                                                                                                                                                                                                        
v20.9.0


❯ sudo docker --version                                                                                                                                                                                                                                                                 
Docker version 20.10.24, build 297e128

Priority this issue should have

Medium (should be fixed soon)

@ChanryLimmy ChanryLimmy added the bug Something isn't working label Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants