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] docker image build failed with TLS ServerName to an IP address is not permitted by RFC 6066 #317

Open
xayangjing opened this issue Dec 5, 2024 · 0 comments

Comments

@xayangjing
Copy link

Describe the bug
Can not build docker image via release 1.21.

To Reproduce
Steps to reproduce the behavior:

  1. docker build -t drawdb .
  2. Will get error as below
[+] Building 13.2s (8/10)                                                                                                            docker:default
 => [internal] load build definition from Dockerfile                                                                                           0.0s
 => => transferring dockerfile: 514B                                                                                                           0.0s
 => [internal] load metadata for docker.io/library/node:20-alpine                                                                              0.0s
 => [internal] load .dockerignore                                                                                                              0.0s
 => => transferring context: 465B                                                                                                              0.0s
 => [1/6] FROM docker.io/library/node:20-alpine                                                                                                0.0s
 => [internal] load build context                                                                                                              0.0s
 => => transferring context: 14.36kB                                                                                                           0.0s
 => CACHED [2/6] WORKDIR /app                                                                                                                  0.0s
 => CACHED [3/6] COPY package*.json ./                                                                                                         0.0s
 => ERROR [4/6] RUN npm ci                                                                                                                    13.1s
------
 > [4/6] RUN npm ci:
0.455 (node:1) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066. This will be ignored in a future version.
0.455 (Use `node --trace-deprecation ...` to show where the warning was created)
12.99 npm error A complete log of this run can be found in: /root/.npm/_logs/2024-12-05T13_37_00_499Z-debug-0.log
------
Dockerfile:5
--------------------
   3 |     WORKDIR /app
   4 |     COPY package*.json ./
   5 | >>> RUN npm ci
   6 |     COPY . .
   7 |     RUN npm run build
--------------------
ERROR: failed to solve: process "/bin/sh -c npm ci" did not complete successfully: exit code: 1

Expected behavior
The docker image with version 1.2.1 should be created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant