mdopp / simple-sonoff-server

Emulates the original sonoff-cloud-servers within your local network.
BSD 2-Clause "Simplified" License
144 stars 47 forks source link

Dockerbuild failed #13

Closed kisdaniel closed 6 years ago

kisdaniel commented 6 years ago

docker build failed with the following output:

docker build .
Sending build context to Docker daemon  7.225MB
Step 1/8 : FROM arm32v7/node:9.3-slim
 ---> 7a238ed55f20
Step 2/8 : ENV HTTP_PORT=8080
 ---> Using cache
 ---> f26351680c29
Step 3/8 : ENV HTTPS_PORT=8443
 ---> Using cache
 ---> 629b088302fa
Step 4/8 : ENV WEBSOCKET_PORT=9443
 ---> Using cache
 ---> e99625a82690
Step 5/8 : WORKDIR simple-sonoff-server
 ---> Using cache
 ---> 5f7c00cdb40b
Step 6/8 : ADD ./ ./
 ---> 1b6abf4f7fce
Step 7/8 : RUN npm install
 ---> Running in 7177fe29f80c
standard_init_linux.go:195: exec user process caused "no such file or directory"
The command '/bin/sh -c npm install' returned a non-zero code: 1
mdopp commented 6 years ago

did you run this on your raspberry or a x86 computer (linux / windows)? as the dockerfile only works with arm-processors. I was not able to create a cross-plattform-build process yet

kisdaniel commented 6 years ago

I have tried it on x86 64 bit ubuntu.

mdopp commented 6 years ago

Then you need another base image in the dockerfile