mirror of
https://github.com/KevinMidboe/waka-box.git
synced 2025-10-29 09:50:22 +00:00
Add the waka-box Dockerfile
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
FROM node:lts-alpine
|
||||||
|
|
||||||
|
# Labels for GitHub to read your action
|
||||||
|
LABEL "com.github.actions.name"="waka-box"
|
||||||
|
LABEL "com.github.actions.description"="Update a pinned gist to contain WakaTime stats"
|
||||||
|
# Here are all of the available icons: https://feathericons.com/
|
||||||
|
LABEL "com.github.actions.icon"="clipboard"
|
||||||
|
# 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"
|
||||||
|
|
||||||
|
# Copy the package.json and package-lock.json
|
||||||
|
COPY package*.json ./
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
RUN npm ci
|
||||||
|
|
||||||
|
# Copy the rest of your action's code
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Run `node index.js`
|
||||||
|
ENTRYPOINT ["node", "index.js"]
|
||||||
Reference in New Issue
Block a user