gh-action-bump-version/Dockerfile

36 lines
982 B
Docker
Raw Normal View History

2019-10-26 19:06:00 +00:00
# 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:slim
2019-01-27 00:14:12 +00:00
2019-10-26 19:06:00 +00:00
# Labels for GitHub to read your action
LABEL "com.github.actions.name"="Automated version bump for npm packages."
LABEL "com.github.actions.description"="Automated version bump for npm packages."
# Here are all of the available icons: https://feathericons.com/
LABEL "com.github.actions.icon"="chevron-up"
# And all of the available colors: https://developer.github.com/actions/creating-github-actions/creating-a-docker-container/#label
LABEL "com.github.actions.color"="blue"
2019-01-26 21:51:06 +00:00
2019-10-26 19:06:00 +00:00
# Copy the package.json and package-lock.json
COPY package*.json ./
2019-01-26 21:51:06 +00:00
2019-10-26 19:06:00 +00:00
# Install dependencies
2019-10-26 19:13:15 +00:00
RUN apt-get update
RUN apt-get -y install git
2019-10-26 19:42:48 +00:00
2019-10-26 19:06:00 +00:00
RUN npm ci
2019-05-23 19:12:30 +00:00
2019-10-26 19:19:18 +00:00
2019-10-26 19:06:00 +00:00
# Copy the rest of your action's code
COPY . .
2019-01-26 21:51:06 +00:00
2019-10-26 19:06:00 +00:00
# Run `node /index.js`
ENTRYPOINT ["node", "/index.js"]