Skip to content

Cant build Docker Image #75

Open
Open
@rivancic

Description

@rivancic

OS: Windows 10

When I try to build Docker image I get following error:

docker build -t vuln-regex-detector .

[+] Building 6.3s (10/10) FINISHED                                                                                                                                                                                            
=> [internal] load build definition from Dockerfile                                                                                                      0.0s
=> => transferring dockerfile: 32B                                                                                                                       0.0s
=> [internal] load .dockerignore                                                                                                                         0.0s
=> => transferring context: 2B                                                                                                                           0.0s
=> [internal] load metadata for docker.io/library/ubuntu:16.04                                                                                           1.3s
=> [1/6] FROM docker.io/library/ubuntu:16.04@sha256:e74994b7a9ec8e2129cfc6a871f3236940006ed31091de355578492ed140a39c                                     0.0s
=> [internal] load build context                                                                                                                         0.2s
=> => transferring context: 13.39kB                                                                                                                      0.1s
=> CACHED [2/6] RUN apt-get update && apt-get install -y     sudo     wget                                                                               0.0s
=> CACHED [3/6] RUN wget -qO- https://deb.nodesource.com/setup_10.x | bash -                                                                             0.0s
=> CACHED [4/6] COPY . /app                                                                                                                              0.0s
=> CACHED [5/6] WORKDIR /app                                                                                                                             0.0s
=> ERROR [6/6] RUN apt-get update &&     JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 ./configure                                                              4.7s
------                                                                                                                                                       
> [6/6] RUN apt-get update &&     JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 ./configure:
#9 0.692 Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
#9 0.712 Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
#9 0.800 Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
#9 0.852 Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
#9 1.023 Get:5 https://deb.nodesource.com/node_10.x xenial InRelease [4584 B]
#9 1.047 Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [2452 kB]
#9 1.286 Get:7 https://deb.nodesource.com/node_10.x xenial/main amd64 Packages [768 B]
#9 2.379 Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [1539 kB]
#9 3.380 Fetched 4322 kB in 2s (1536 kB/s)
#9 3.380 Reading package lists...
#9 4.686 /usr/bin/env: 'perl\r': No such file or directory
------
failed to solve with frontend dockerfile.v0: failed to build LLB: executor failed running [/bin/sh -c apt-get update &&     JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 ./configure]: runc did not terminate sucessfully

Is the underlying Docker image missing perl instalation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions