forked from dependabot/dependabot-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.ci
122 lines (99 loc) · 4.04 KB
/
Dockerfile.ci
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
FROM dependabot/dependabot-core
RUN useradd -m dependabot
RUN chown -R dependabot:dependabot /usr/local/.pyenv /opt/go/gopath
USER dependabot
RUN mkdir -p /home/dependabot/dependabot-core/common/lib/dependabot
WORKDIR /home/dependabot/dependabot-core
ENV BUNDLE_PATH="/home/dependabot/.bundle" \
BUNDLE_BIN=".bundle/binstubs" \
PATH=".bundle/binstubs:$PATH:/home/dependabot/.bundle/bin"
RUN gem install --user rake
COPY common/Gemfile common/dependabot-common.gemspec /home/dependabot/dependabot-core/common/
COPY common/lib/dependabot/version.rb /home/dependabot/dependabot-core/common/lib/dependabot/
RUN cd common && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/terraform
COPY terraform/Gemfile \
terraform/dependabot-terraform.gemspec \
/home/dependabot/dependabot-core/terraform/
RUN cd terraform && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/elm
COPY elm/Gemfile \
elm/dependabot-elm.gemspec \
/home/dependabot/dependabot-core/elm/
RUN cd elm && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/python
COPY python/Gemfile \
python/dependabot-python.gemspec \
/home/dependabot/dependabot-core/python/
RUN cd python && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/docker
COPY docker/Gemfile \
docker/dependabot-docker.gemspec \
/home/dependabot/dependabot-core/docker/
RUN cd docker && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/git_submodules
COPY git_submodules/Gemfile \
git_submodules/dependabot-git_submodules.gemspec \
/home/dependabot/dependabot-core/git_submodules/
RUN cd git_submodules && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/github_actions
COPY github_actions/Gemfile \
github_actions/dependabot-github_actions.gemspec \
/home/dependabot/dependabot-core/github_actions/
RUN cd github_actions && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/maven
COPY maven/Gemfile \
maven/dependabot-maven.gemspec \
/home/dependabot/dependabot-core/maven/
RUN cd maven && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/gradle
COPY gradle/Gemfile \
gradle/dependabot-gradle.gemspec \
/home/dependabot/dependabot-core/gradle/
RUN cd gradle && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/hex
COPY hex/Gemfile \
hex/dependabot-hex.gemspec \
/home/dependabot/dependabot-core/hex/
RUN cd hex && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/nuget
COPY nuget/Gemfile \
nuget/dependabot-nuget.gemspec \
/home/dependabot/dependabot-core/nuget/
RUN cd nuget && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/composer
COPY composer/Gemfile \
composer/dependabot-composer.gemspec \
/home/dependabot/dependabot-core/composer/
RUN cd composer && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/cargo
COPY cargo/Gemfile \
cargo/dependabot-cargo.gemspec \
/home/dependabot/dependabot-core/cargo/
RUN cd cargo && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/dep
COPY dep/Gemfile \
dep/dependabot-dep.gemspec \
/home/dependabot/dependabot-core/dep/
RUN cd dep && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/go_modules
COPY go_modules/Gemfile \
go_modules/dependabot-go_modules.gemspec \
/home/dependabot/dependabot-core/go_modules/
RUN cd go_modules && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/npm_and_yarn
COPY npm_and_yarn/Gemfile \
npm_and_yarn/dependabot-npm_and_yarn.gemspec \
/home/dependabot/dependabot-core/npm_and_yarn/
RUN cd npm_and_yarn && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/bundler
COPY bundler/Gemfile \
bundler/dependabot-bundler.gemspec \
/home/dependabot/dependabot-core/bundler/
RUN cd bundler && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/omnibus
COPY omnibus/Gemfile \
omnibus/dependabot-omnibus.gemspec \
/home/dependabot/dependabot-core/omnibus/
RUN cd omnibus && bundle install
COPY --chown=dependabot . /home/dependabot/dependabot-core/