Skip to content

[BUG] docker image build failed with TLS ServerName to an IP address is not permitted by RFC 6066 #317

Open
@xayangjing

Description

@xayangjing

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions