This repository has been archived by the owner on Mar 22, 2022. It is now read-only.
Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
prettier/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (26 sloc)
1.04 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.11.6 | |
# Build-time metadata as defined at http://label-schema.org | |
ARG BUILD_DATE | |
ARG VCS_REF | |
ARG VERSION | |
ARG REPO_NAME | |
LABEL org.label-schema.vendor="tmknom" \ | |
org.label-schema.name=$REPO_NAME \ | |
org.label-schema.description="Prettier is an opinionated code formatter." \ | |
org.label-schema.build-date=$BUILD_DATE \ | |
org.label-schema.version=$VERSION \ | |
org.label-schema.vcs-ref=$VCS_REF \ | |
org.label-schema.vcs-url="https://github.com/$REPO_NAME" \ | |
org.label-schema.usage="https://github.com/$REPO_NAME/blob/master/README.md#usage" \ | |
org.label-schema.docker.cmd="docker run --rm -v \$PWD:/work $REPO_NAME --parser=markdown --write '**/*.md'" \ | |
org.label-schema.schema-version="1.0" | |
ARG NODEJS_VERSION=12.15.0-r1 | |
ARG PRETTIER_VERSION | |
RUN set -x && \ | |
apk add --no-cache nodejs=${NODEJS_VERSION} nodejs-npm=${NODEJS_VERSION} && \ | |
npm install -g prettier@${PRETTIER_VERSION} && \ | |
npm cache clean --force && \ | |
apk del nodejs-npm | |
WORKDIR /work | |
ENTRYPOINT ["/usr/bin/prettier"] | |
CMD ["--help"] |