gh-action-bump-version/Dockerfile

36 lines
1008 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
2021-05-20 21:50:32 +00:00
FROM node:15.12.0-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
2020-10-23 11:45:37 +00:00
COPY package*.json ./
2019-01-26 21:51:06 +00:00
2019-10-26 19:06:00 +00:00
# Install dependencies
2019-10-26 20:12:01 +00:00
RUN apt-get update
2019-10-26 19:13:15 +00:00
RUN apt-get -y install git
2019-10-26 19:42:48 +00:00
2020-10-23 11:45:37 +00:00
RUN npm ci --only=production
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`
2020-10-23 11:45:37 +00:00
ENTRYPOINT ["node", "/index.js"]