envygeeks / jekyll-docker

⛴ Docker images, and CI builders for Jekyll.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

There was an error while trying to write to `/src/Gemfile.lock`.

DavidStrickland0 opened this issue · comments

Trying to get a sample jeckyll app running in docker. My Current DockerFile looks like

 # Pull base image.
FROM jekyll/jekyll

WORKDIR /src
copy . ./

RUN bundle install

EXPOSE 80

ENTRYPOINT bundle exec jekyll serve --port 80

However when I
docker build -t jekyll .

I get

 ...
 #7 40.58 Using minima 2.5.1
#7 40.59 There was an error while trying to write to `/src/Gemfile.lock`. It is likely
#7 40.59 that you need to grant write permissions for that path.
------
executor failed running [/bin/sh -c bundle install]: exit code: 23

Assume its a simple chown however not sure what user jekyll is using.
I just copied in the gemfile.lock so not sure why I wouldnt have write perms to it.