-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.template
44 lines (40 loc) · 1.03 KB
/
Dockerfile.template
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Docker image for the Drone Capistrano plugin
#
# cd $GOPATH/src/github.com/drone-plugins/drone-capistrano
# make deps build docker
FROM ruby:${RUBY_VERSION}-slim
ENV RUBY_VERSION=${RUBY_VERSION} \
PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
openssh-client \
git \
tzdata \
ca-certificates \
autoconf \
bison \
dpkg-dev \
libcurl4-openssl-dev \
libffi-dev \
libgdbm6 \
libgdbm-dev \
libmariadb-dev \
default-libmysqlclient-dev \
libncurses5-dev \
libpq-dev \
libreadline6-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
libxslt1-dev \
libyaml-dev \
zlib1g-dev && \
apt-get clean && \
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && \
rm -rf /var/cache/apt/* && \
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"]