# Use the latest version of Node.js
#
# You may prefer the full image:
# FROM node
#
# or even an alpine image (a smaller, faster, less-feature-complete image):
# FROM node:alpine
#
# You can specify a version:
# FROM node:10-slim
FROM node:20-slim

# Labels for GitHub to read your action
LABEL "com.github.actions.name"="VTEX IO Test Action"
LABEL "com.github.actions.description"="Automatically run tests for VTEX IO apps"

# Here are all of the available icons: https://feathericons.com/
LABEL "com.github.actions.icon"="code"

# And all of the available colors: https://developer.github.com/actions/creating-github-actions/creating-a-docker-container/#label
LABEL "com.github.actions.color"="orange"

COPY . /danger/

WORKDIR /danger

RUN yarn

# Run `node /lib/index.js`
ENTRYPOINT ["node", "/danger/action/action.js"]
