Skip to content

Commit

Permalink
Merge pull request tcort#113 from cadeef/optimize/docker-image-cleanup
Browse files Browse the repository at this point in the history
Update Dockerfile to ready image for public distribution
  • Loading branch information
NicolasMassart authored Oct 5, 2020
2 parents b53e3e3 + 2dbccb0 commit 2e6ae33
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
FROM node:latest
LABEL maintainer="https://github.com/4x0v7"
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/package.json
COPY package*.json /src/
WORKDIR /src
RUN set -ex; \
npm install \
&& npm ls
npm install
# Bundle app source
COPY . /src
RUN npm test
Expand Down

0 comments on commit 2e6ae33

Please sign in to comment.