forked from renovatebot/docker-buildpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
149 lines (104 loc) · 3.16 KB
/
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
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#--------------------------------------
# Target image to build
#--------------------------------------
ARG IMAGE=latest
#--------------------------------------
# Ubuntu base image to use
#--------------------------------------
ARG FLAVOR=latest
#--------------------------------------
# renovate rebuild trigger
#--------------------------------------
FROM renovate/ubuntu:bionic@sha256:7ff400eec3db7237b0feb730de6f0d084fa95f0619bfc2f04388e8270f953244
#--------------------------------------
# Image: base
#--------------------------------------
FROM renovate/ubuntu:${FLAVOR} as base
ARG BUILDPACK_VERSION
LABEL org.opencontainers.image.source="https://github.com/renovatebot/docker-buildpack" \
org.opencontainers.image.version="${BUILDPACK_VERSION}"
USER root
# Zombie killer: https://github.com/Yelp/dumb-init#readme
RUN apt-get update && \
apt-get install -y dumb-init && \
rm -rf /var/lib/apt/lists/*
# loading env
ENV BASH_ENV=/usr/local/etc/env
SHELL ["/bin/bash" , "-c"]
ENTRYPOINT [ "docker-entrypoint.sh" ]
COPY src/base/ /usr/local/
#--------------------------------------
# Image: erlang
#--------------------------------------
FROM base as erlang
COPY src/erlang/ /usr/local/
#--------------------------------------
# Image: golang
#--------------------------------------
FROM base as golang
COPY src/golang/ /usr/local/
#--------------------------------------
# Image: java
#--------------------------------------
FROM base as java
COPY src/java/ /usr/local/
#--------------------------------------
# Image: node
#--------------------------------------
FROM base as node
COPY src/node/ /usr/local/
#--------------------------------------
# Image: php
#--------------------------------------
FROM base as php
COPY src/php/ /usr/local/
#--------------------------------------
# Image: python
#--------------------------------------
FROM base as python
COPY src/python/ /usr/local/
#--------------------------------------
# Image: ruby
#--------------------------------------
FROM base as ruby
COPY src/ruby/ /usr/local/
#--------------------------------------
# Image: rust
#--------------------------------------
FROM base as rust
COPY src/rust/ /usr/local/
#--------------------------------------
# Image: dotnet
#--------------------------------------
FROM base as dotnet
COPY src/dotnet/ /usr/local/
#--------------------------------------
# Image: swift
#--------------------------------------
FROM base as swift
COPY src/swift/ /usr/local/
#--------------------------------------
# Image: helm
#--------------------------------------
FROM base as helm
COPY src/helm/ /usr/local/
#--------------------------------------
# Image: full (latest)
#--------------------------------------
FROM base as latest
COPY src/docker/ /usr/local/
COPY src/erlang/ /usr/local/
COPY src/golang/ /usr/local/
COPY src/java/ /usr/local/
COPY src/node/ /usr/local/
COPY src/php/ /usr/local/
COPY src/python/ /usr/local/
COPY src/ruby/ /usr/local/
COPY src/rust/ /usr/local/
COPY src/dotnet/ /usr/local/
COPY src/swift/ /usr/local/
COPY src/helm/ /usr/local/
#--------------------------------------
# Image: final
#--------------------------------------
FROM ${IMAGE} as final