forked from rwojsznis/drone-capistrano
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (22 loc) · 920 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Docker image for the Drone Capistrano plugin
#
# cd $GOPATH/src/github.com/drone-plugins/drone-capistrano
# make deps build docker
FROM ruby:2.4.1-alpine
ENV BUILD_PACKAGES="curl-dev build-base ca-certificates git openssh" \
DEV_PACKAGES="zlib-dev libxml2-dev libxslt-dev tzdata yaml-dev sqlite-dev postgresql-dev mariadb-dev"
RUN \
apk add --update --upgrade $BUILD_PACKAGES $DEV_PACKAGES && \
echo 'gem: --no-document' >> /etc/gemrc && \
chmod uog+r /etc/gemrc && \
gem install bundler && \
bundle config --global build.nokogiri "--use-system-libraries" && \
bundle config --global build.nokogumbo "--use-system-libraries" && \
find / -type f -iname \*.apk-new -delete && \
rm -rf /var/cache/apk/* && \
rm -rf /usr/lib/ruby/gems/*/cache/* && \
rm -rf /usr/local/bundle/cache/* && \
rm -rf ~/.gem
ADD bundle.sh /
ADD drone-capistrano /bin/
ENTRYPOINT ["/bin/drone-capistrano"]