forked from dependabot/dependabot-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.ci
79 lines (64 loc) · 2.53 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
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
WORKDIR /home/dependabot/dependabot-core
ENV BUNDLE_PATH="/home/dependabot/.bundle" \
BUNDLE_BIN=".bundle/binstubs" \
PATH=".bundle/binstubs:$PATH"
COPY Gemfile dependabot-core.gemspec /home/dependabot/dependabot-core/
COPY lib/dependabot/version.rb /home/dependabot/dependabot-core/lib/dependabot/
RUN 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
<<<<<<< HEAD
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/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/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/go_modules
COPY go_modules/Gemfile \
go_modules/dependabot-go_modules.gemspec \
/home/dependabot/dependabot-core/go_modules/
RUN cd go_modules && bundle install
COPY --chown=dependabot . /home/dependabot/dependabot-core/