forked from bdougie/invite-based-on-comment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (19 loc) · 972 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
FROM andrius/alpine-ruby
# Labels for GitHub to read your action
LABEL "com.github.actions.name"="Invite collaborator based on a comment"
LABEL "com.github.actions.description"="This actions will check for comments on issues for eight '.invite me' or '.invite @handle'."
# Here are all of the available icons: https://feathericons.com/
LABEL "com.github.actions.icon"="send"
# And all of the available colors: https://developer.github.com/actions/creating-github-actions/creating-a-docker-container/#label
LABEL "com.github.actions.color"="gray-dark"
ENV RUBY_PACKAGES bash curl-dev ruby-dev build-base git ruby ruby-io-console ruby-bundler ruby-json ruby-rdoc
# Update and install all of the required packages.
# At the end, remove the apk cache
RUN apk update && \
apk upgrade && \
apk add $RUBY_PACKAGES && \
rm -rf /var/cache/apk/*
COPY entrypoint.sh /entrypoint.sh
COPY action.rb /action.rb
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]