BretFisher / php-docker-good-defaults

*WORK IN PROGRESS* sample PHP/Laravel app for Docker examples
MIT License
362 stars 116 forks source link

Dockerfile ssh-keyscan fails #6

Closed b0ric closed 6 years ago

b0ric commented 6 years ago

Image build fails for me on this step:

RUN ssh-keyscan -t rsa bitbucket.org >> /root/.ssh/known_hosts \ && ssh-keyscan -t rsa github.com >> /root/.ssh/known_hosts

with the following error:

/bin/sh: 1: cannot create /root/.ssh/known_hosts: Directory nonexistent

Let's change it to

RUN mkdir /root/.ssh && chmod 0700 /root/.ssh \ && ssh-keyscan -t rsa bitbucket.org >> /root/.ssh/known_hosts \ && ssh-keyscan -t rsa github.com >> /root/.ssh/known_hosts

what do you think?

BretFisher commented 6 years ago

Yea let me change that, thanks!

BretFisher commented 6 years ago

Fixed, thanks @b0ric