forked from factorysh/docker-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.apt-dev
58 lines (53 loc) · 1.88 KB
/
Dockerfile.apt-dev
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
ARG DEBIAN_DISTRO
FROM bearstech/debian-dev:${DEBIAN_DISTRO}
ARG DEBIAN_DISTRO
ARG RUBY_VERSION
RUN set -eux \
&& export http_proxy=${HTTP_PROXY} \
&& apt-get update \
&& if [ "${DEBIAN_DISTRO}" = "stretch" ]; then apt-get install -y --no-install-recommends \
libgmp-dev \
libpq-dev \
ruby \
ruby${RUBY_VERSION} \
ruby${RUBY_VERSION}-dev \
default-libmysqlclient-dev \
libmariadb-dev \
; fi \
&& if [ "${DEBIAN_DISTRO}" = "buster" ]; then apt-get install -y --no-install-recommends \
libgmp-dev \
libpq-dev \
ruby \
ruby${RUBY_VERSION} \
ruby${RUBY_VERSION}-dev \
libmariadb-dev \
; fi \
&& if [ "${DEBIAN_DISTRO}" = "bullseye" ]; then apt-get install -y --no-install-recommends \
bundler \
libgmp-dev \
libpq-dev \
ruby \
ruby${RUBY_VERSION} \
ruby${RUBY_VERSION}-dev \
libmariadb-dev \
; else \
gem install \
--version=1.13.6 \
--no-document \
--bindir /usr/local/bin \
bundler; \
gem cleanup all \
; fi \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# generated labels
ARG GIT_VERSION
ARG GIT_DATE
ARG BUILD_DATE
LABEL \
com.bearstech.image.revision_date=${GIT_DATE} \
org.opencontainers.image.authors=Bearstech \
org.opencontainers.image.revision=${GIT_VERSION} \
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.url=https://github.com/factorysh/docker-ruby \
org.opencontainers.image.source=https://github.com/factorysh/docker-ruby/blob/${GIT_VERSION}/Dockerfile.apt-dev