Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 24 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -262,31 +262,40 @@ RUN DART_ARCH=${TARGETARCH} \
&& dart --version

COPY --chown=dependabot:dependabot LICENSE /home/dependabot

USER dependabot

ENV DEPENDABOT_NATIVE_HELPERS_PATH="/opt"

COPY --chown=dependabot:dependabot composer/helpers /opt/composer/helpers
RUN bash /opt/composer/helpers/v1/build \
&& bash /opt/composer/helpers/v2/build

COPY --chown=dependabot:dependabot bundler/helpers /opt/bundler/helpers
RUN bash /opt/bundler/helpers/v1/build \
&& bash /opt/bundler/helpers/v2/build

COPY --chown=dependabot:dependabot go_modules/helpers /opt/go_modules/helpers
RUN bash /opt/go_modules/helpers/build

COPY --chown=dependabot:dependabot hex/helpers /opt/hex/helpers
COPY --chown=dependabot:dependabot pub/helpers /opt/pub/helpers
COPY --chown=dependabot:dependabot npm_and_yarn/helpers /opt/npm_and_yarn/helpers
COPY --chown=dependabot:dependabot python/helpers /opt/python/helpers
COPY --chown=dependabot:dependabot terraform/helpers /opt/terraform/helpers
ENV MIX_HOME="/opt/hex/mix"
RUN bash /opt/hex/helpers/build

ENV DEPENDABOT_NATIVE_HELPERS_PATH="/opt" \
PATH="$PATH:/opt/terraform/bin:/opt/python/bin:/opt/go_modules/bin" \
MIX_HOME="/opt/hex/mix"
COPY --chown=dependabot:dependabot pub/helpers /opt/pub/helpers
RUN bash /opt/pub/helpers/build

USER dependabot
RUN bash /opt/bundler/helpers/v1/build
RUN bash /opt/bundler/helpers/v2/build
RUN bash /opt/composer/helpers/v1/build
RUN bash /opt/composer/helpers/v2/build
RUN bash /opt/go_modules/helpers/build
RUN bash /opt/hex/helpers/build
COPY --chown=dependabot:dependabot npm_and_yarn/helpers /opt/npm_and_yarn/helpers
RUN bash /opt/npm_and_yarn/helpers/build
RUN bash /opt/pub/helpers/build

COPY --chown=dependabot:dependabot python/helpers /opt/python/helpers
RUN bash /opt/python/helpers/build

COPY --chown=dependabot:dependabot terraform/helpers /opt/terraform/helpers
RUN bash /opt/terraform/helpers/build

ENV PATH="$PATH:/opt/terraform/bin:/opt/python/bin:/opt/go_modules/bin"

ENV HOME="/home/dependabot"

WORKDIR ${HOME}
Expand Down