GitbookIO / gitbook-cli

GitBook's command line interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build commands fails in docker with node:alpine

JacerOmri opened this issue · comments

Hello,

I'm using docker to build my gitbook inside a container.
I have this Dockerfile:

FROM node:alpine

RUN npm install -g gitbook-cli

ADD . .

RUN gitbook build

running docker build., I get this error:
Error: ENOENT: no such file or directory, stat '/dev/fd/61'

i tried installing udev using RUN apk add --update udev, didn't help.

Docker version 17.11.0-ce, build 1caf76c

commented

Running gitbook build from the root directory of a docker image seems to cause problems if you do

ADD . /gitbook
WORKDIR /gitbook
RUN gitbook build

it seems to work