-
-
Save tuki0918/2e50c2f204025e694ef5fa990178eace to your computer and use it in GitHub Desktop.
test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2-alpine | |
MAINTAINER tuki0918 <[email protected]> | |
RUN apk update | |
RUN apk add --update gcc make g++ openssh \ | |
git \ | |
&& rm -rf /var/cache/apk/* | |
ENV dir /root/capistrano | |
WORKDIR ${dir} | |
ADD capistrano/Gemfile ${dir}/Gemfile | |
ADD capistrano/Gemfile.lock ${dir}/Gemfile.lock | |
RUN bundle install | |
RUN mkdir -p /root/.ssh | |
RUN chmod 700 /root/.ssh | |
ADD .ssh/id_rsa /root/.ssh/id_rsa | |
RUN chmod 600 /root/.ssh/id_rsa | |
RUN eval $(ssh-agent -s) | |
RUN ssh-add /root/.ssh/id_rsa | |
# CMD ["/usr/sbin/sshd","-D"] | |
CMD ["sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment