-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (24 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
29 lines (24 loc) · 1.06 KB
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
26
27
28
29
ARG NODE_VERSION=lts
FROM node:${NODE_VERSION}-alpine
ARG AUTHOR
ARG DOCKER_IMAGE_LATEST_VERSION
ARG DOCKER_TAG
ARG GIT_REPO_HTTP_URL
ARG GIT_SHORT_SHA
RUN set -x && \
npm install -g "action-docs@${DOCKER_TAG}" && \
npm cache clean --force
# OCI standard labels
LABEL org.opencontainers.image.title="Dockerized action-docs" \
org.opencontainers.image.description="Generates and updates documentation for GitHub actions" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.documentation="${GIT_REPO_HTTP_URL}/blob/main/README.md" \
org.opencontainers.image.source="${GIT_REPO_HTTP_URL}" \
org.opencontainers.image.url="${GIT_REPO_HTTP_URL}.git" \
org.opencontainers.image.authors="${AUTHOR}" \
org.opencontainers.image.vendor="${AUTHOR}" \
org.opencontainers.image.revision="${GIT_SHORT_SHA}" \
org.opencontainers.image.version="${DOCKER_TAG}" \
org.opencontainers.image.cmd="docker run --rm -v \$PWD:/work ${DOCKER_IMAGE_LATEST_VERSION} <action-docs command>"
WORKDIR /work
ENTRYPOINT ["/usr/local/bin/action-docs"]