jbowens / codenames

Play codenames online
https://www.horsepaste.com
617 stars 208 forks source link

Docker build fails #146

Closed tna76874 closed 3 years ago

tna76874 commented 3 years ago

Hi there,

I don't know if it is me or some missing dependency, but the docker build fails with:

/bin/sh: lscpu: not found

Any ideas ?

Regards

jbowens commented 3 years ago

Sorry, I'm not sure. I don't use the Docker image personally.

jrbarronumd commented 3 years ago

It is still working for me, using docker-compose. I'm no expert but I can try to weigh in if you can show how you're creating the image and running the container.

j-zarp commented 3 years ago

You need to install util-linux (this alpine package includes a binary for lscpu). Make the following change to your Dockerfile:

RUN apk add util-linux \
    && npm install -g parcel-bundler \
    && npm install \
    && sh build.sh
tna76874 commented 3 years ago

Thank you for you answers. Unfortunately the building still fails. I append a full log of the building process of both modified and unmodified Dockerfile. docker.log docker_mod.log

Thanks!

j-zarp commented 3 years ago

The new error that you get with the modified Dockerfile is related to the parcel-bundler package. A fix is to explicitly specify the version of parcel-bundler in the Dockerfile:

npm install -g parcel-bundler@1.12.3

More details on this issue here: https://github.com/parcel-bundler/parcel/issues/5943

tna76874 commented 3 years ago

@jdespraz thats it ! Build is working - I append the log and die Dockerfile. docker_mod2.log

Dockerfile.txt

Thanks!