forked from GetTerminus/terraform-pr-commenter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (22 loc) · 804 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
ARG TOFU_VERSION=1.8.0
FROM ghcr.io/opentofu/opentofu:${TOFU_VERSION}
LABEL repository="https://github.com/phoenix-actions/opentofu-pr-commenter" \
homepage="https://github.com/phoenix-actions/opentofu-pr-commenter" \
maintainer="Phoenix Actions" \
com.github.actions.name="OpenTofu PR Commenter" \
com.github.actions.description="Adds comments to a PR from OpenTofu fmt/init/plan/tflint output." \
com.github.actions.icon="git-pull-request" \
com.github.actions.color="blue"
RUN apk add --no-cache -q \
bash \
curl \
perl \
jq \
&& apk add --upgrade curl
ADD entrypoint.sh /entrypoint.sh
ADD /handlers /handlers
ADD /utilities /utilities
RUN chmod +x /entrypoint.sh
RUN chmod +x /handlers
RUN chmod +x /utilities
ENTRYPOINT ["/entrypoint.sh"]