generated from svt/open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (24 loc) · 985 Bytes
/
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
FROM cgr.dev/chainguard/wolfi-base
ENV DEFAULT_ARGS "--help"
RUN apk update && apk add --no-cache --update-cache \
curl \
acl \
bash \
git \
libstdc++ \
gpg \
openssh-client \
openssh-keygen \
&& ln -sf /bin/bash /bin/sh
SHELL ["/bin/bash", "-c"]
RUN mkdir -p /app/repo && git clone https://github.com/asdf-vm/asdf.git /app/.asdf --branch v0.11.2 \
&& echo '. /app/.asdf/asdf.sh' >> /etc/bash.bashrc
ENV ASDF_DIR=/app/.asdf
ENV ASDF_DATA_DIR=/app/.asdf
COPY /.tool-versions /app/.tool-versions
COPY /bash/src/changelog_release.bash /app/changelog_release.bash
COPY /bash/src/changelog_release_templates /app/changelog_release_templates
RUN export ASDF_DIR='/app/.asdf' && export ASDF_DATA_DIR='/app/.asdf' \
&& source '/app/.asdf/asdf.sh' && cut -d' ' -f1 /app/.tool-versions | xargs -i asdf plugin add {} \
&& cd /app && asdf install
CMD ["/bin/bash", "-c","source /etc/bash.bashrc;/app/changelog_release.bash ${ARGS:-${DEFAULT_ARGS}}"]