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

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

Open
DavidStrickland0 opened this issue Jan 28, 2023 · 0 comments
Open

Comments

@DavidStrickland0
Copy link

DavidStrickland0 commented Jan 28, 2023

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.

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

1 participant