From 72654314673a10ca84305e46846349eaae014f82 Mon Sep 17 00:00:00 2001 From: Herloct Date: Sat, 4 Mar 2017 13:59:21 +0700 Subject: [PATCH] Update to 2.8.1 (#2) * Update to 2.8.1. * No need to use tini. * Update licence year. * Remove unused dockerignore. --- .dockerignore | 3 --- Dockerfile | 9 +++------ LICENSE | 2 +- README.md | 3 ++- 4 files changed, 6 insertions(+), 11 deletions(-) delete mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 4b71674..0000000 --- a/.dockerignore +++ /dev/null @@ -1,3 +0,0 @@ -.git/ -LICENSE -README.md diff --git a/Dockerfile b/Dockerfile index ee0bcbe..332996b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,9 @@ FROM php:7.1.1-alpine MAINTAINER herloct -ENV PHPCS_VERSION=2.8.0 +ENV PHPCS_VERSION=2.8.1 -RUN apk update --no-cache \ - && apk add --no-cache tini \ - - && curl -L https://github.com/squizlabs/PHP_CodeSniffer/releases/download/$PHPCS_VERSION/phpcs.phar > /usr/local/bin/phpcs \ +RUN curl -L https://github.com/squizlabs/PHP_CodeSniffer/releases/download/$PHPCS_VERSION/phpcs.phar > /usr/local/bin/phpcs \ && chmod +x /usr/local/bin/phpcs \ && rm -rf /var/cache/apk/* /var/tmp/* /tmp/* @@ -15,5 +12,5 @@ RUN apk update --no-cache \ VOLUME ["/project"] WORKDIR /project -ENTRYPOINT ["/sbin/tini", "--", "phpcs"] +ENTRYPOINT ["phpcs"] CMD ["--version"] diff --git a/LICENSE b/LICENSE index 0cedf17..3a448ab 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2016 herloct +Copyright (c) 2017 herloct Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 0f3b362..cc48fc6 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ ## Supported tags and respective `Dockerfile` links -* [`2.8.0`, `latest`](https://github.com/herloct/docker-phpcs/blob/2.8.0/Dockerfile) +* [`2.8.1`, `latest`](https://github.com/herloct/docker-phpcs/blob/2.8.1/Dockerfile) +* [`2.8.0`](https://github.com/herloct/docker-phpcs/blob/2.8.0/Dockerfile) * [`2.7.1`](https://github.com/herloct/docker-phpcs/blob/2.7.1/Dockerfile) ## What is PHP_CodeSniffer and phpcs?