Skip to content

Instantly share code, notes, and snippets.

@tuki0918
Created July 19, 2016 15:16
Show Gist options
  • Save tuki0918/2e50c2f204025e694ef5fa990178eace to your computer and use it in GitHub Desktop.
Save tuki0918/2e50c2f204025e694ef5fa990178eace to your computer and use it in GitHub Desktop.
test
FROM ruby:2-alpine
MAINTAINER tuki0918 <tuki0918@gmail.com>
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