Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.
Permalink
35d2587ec0
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
30 lines (26 sloc) 1.04 KB
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"]