forked from tcort/markdown-link-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
19 lines (17 loc) · 801 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM node:alpine
# Use the Open Container Image Annotation Spec (https://github.com/opencontainers/image-spec/blob/master/annotations.md)
LABEL org.opencontainers.image.title="markdown-link-check"
LABEL org.opencontainers.image.description="checks that all hyperlinks in a markdown text to determine if they are alive or dead"
LABEL org.opencontainers.image.documentation="https://github.com/tcort/markdown-link-check/blob/master/README.md"
LABEL org.opencontainers.image.source="https://github.com/tcort/markdown-link-check"
# Install app dependencies
COPY package*.json /src/
WORKDIR /src
RUN set -ex; \
npm install
# Bundle app source
COPY . /src
RUN ln -s /src/markdown-link-check /usr/local/bin/markdown-link-check
# hadolint ignore=DL3059
RUN npm test
ENTRYPOINT [ "markdown-link-check" ]