-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile.template
More file actions
executable file
·35 lines (28 loc) · 1.09 KB
/
Dockerfile.template
File metadata and controls
executable file
·35 lines (28 loc) · 1.09 KB
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
# see https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/ for Dockerfile best practices
# build me with:
# docker build -t "juicymo/drone-ruby:%%TAG%%" .
FROM ruby:%%FROM%%
MAINTAINER Tomas Jukin <tomas.jukin@juicymo.cz>
ENV BUILD_PACKAGES libcurl curl curl-dev build-base bash cmake clang clang-dev make gcc g++ libc-dev linux-headers libxml2 libxml2-dev libxslt-dev
ENV RUBY_PACKAGES cairo-dev postgresql-dev tzdata wget postgresql=%%POSTGRES%%
ENV WKHTMLTOPDF_PACKAGES gtk+ glib ttf-freefont fontconfig dbus
RUN apk add --no-cache \
$BUILD_PACKAGES \
$RUBY_PACKAGES \
$WKHTMLTOPDF_PACKAGES \
git \
imagemagick \
less \
nodejs npm \
python2 \
openssh
RUN wget --no-check-certificate https://github.com/kernix/wkhtmltopdf-docker-alpine/raw/master/wkhtmltopdf -P /usr/bin/
RUN chmod a+x /usr/bin/wkhtmltopdf
ENV SHELL /bin/bash
ENV LC_ALL en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8
RUN gem install bundler --no-doc
RUN gem install bundler --no-doc -v '< 2'
RUN npm install -g yarn
RUN curl -sL https://sentry.io/get-cli/ | bash