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

Can't build Docker image #717

Open
j6e opened this issue May 4, 2023 · 2 comments
Open

Can't build Docker image #717

j6e opened this issue May 4, 2023 · 2 comments

Comments

@j6e
Copy link

j6e commented May 4, 2023

The project has a dockerfile but doesn't have instructions on how to build the dockerimage. Is there anything special that needs to be done before building?

➜ docker build -t duckling .
[+] Building 7.9s (13/16)
 => [internal] load build definition from Dockerfile                                                   0.0s
 => => transferring dockerfile: 32B                                                                    0.0s
 => [internal] load .dockerignore                                                                      0.0s
 => => transferring context: 34B                                                                       0.0s
 => [internal] load metadata for docker.io/library/debian:buster                                       0.8s
 => [internal] load metadata for docker.io/library/haskell:8-buster                                    0.9s
 => CACHED [builder 1/8] FROM docker.io/library/haskell:8-buster@sha256:5c365dc081a22550cb4ca62f99a57  0.0s
 => [internal] load build context                                                                      0.1s
 => => transferring context: 82.00kB                                                                   0.1s
 => [stage-1 1/3] FROM docker.io/library/debian:buster@sha256:cca6bcced970f7634197ff1821aabb452024eb4  2.4s
 => => resolve docker.io/library/debian:buster@sha256:cca6bcced970f7634197ff1821aabb452024eb437958ab9  0.0s
 => => sha256:b7c5fe8e0ac53c77142bf16686fc01d0d2b1fb2da7be5414cdf2f224ec485592 49.24MB / 49.24MB       1.6s
 => => sha256:cca6bcced970f7634197ff1821aabb452024eb437958ab98bfc146ece96969c6 984B / 984B             0.0s
 => => sha256:4db99637cd48a7181532cbd61a0da9295ae135ac590f1948fea5cd7c9acfab0b 529B / 529B             0.0s
 => => sha256:f7a28cf0d278f8bcac059068904ae785426f5be984715bf6f46b51ed23065df7 1.48kB / 1.48kB         0.0s
 => => extracting sha256:b7c5fe8e0ac53c77142bf16686fc01d0d2b1fb2da7be5414cdf2f224ec485592              0.7s
 => [builder 2/8] RUN apt-get update -qq &&   apt-get install -qq -y libpcre3 libpcre3-dev build-esse  6.3s
 => [stage-1 2/3] RUN apt-get update -qq &&   apt-get install -qq -y libpcre3 libgmp10 --no-install-r  2.3s
 => [builder 3/8] RUN mkdir /log                                                                       0.3s
 => [builder 4/8] WORKDIR /duckling                                                                    0.0s
 => [builder 5/8] ADD . .                                                                              0.1s
 => ERROR [builder 6/8] RUN stack setup                                                                0.1s
------
 > [builder 6/8] RUN stack setup:
#0 0.128 /bin/sh: 1: stack: not found
------
ERROR: failed to solve: executor failed running [/bin/sh -c stack setup]: exit code: 127```
@isimisi
Copy link

isimisi commented Sep 15, 2023

I can't get it to work on mac M1 - ended up using a windows pc instead, works without issues on windows. Sadly this issue has been present for a very long time, don't know if it will ever be resolved.

@TheBearBytes
Copy link

TheBearBytes commented Nov 15, 2023

I managed to pass RUN stack setup by changing FROM haskell:8-buster AS builder to FROM haskell AS builder in Dockerfile but RUN stack install still failing.
Mac M1 here.

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

3 participants