Skip to content

Commit

Permalink
Update to 2.8.1 (#2)
Browse files Browse the repository at this point in the history
* Update to 2.8.1.
* No need to use tini.
* Update licence year.
* Remove unused dockerignore.
  • Loading branch information
herloct authored Mar 4, 2017
1 parent c5791b9 commit 7265431
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
3 changes: 0 additions & 3 deletions .dockerignore

This file was deleted.

9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@ FROM php:7.1.1-alpine

MAINTAINER herloct <herloct@gmail.com>

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/*

VOLUME ["/project"]
WORKDIR /project

ENTRYPOINT ["/sbin/tini", "--", "phpcs"]
ENTRYPOINT ["phpcs"]
CMD ["--version"]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2016 herloct <herloct@gmail.com>
Copyright (c) 2017 herloct <herloct@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 7265431

Please sign in to comment.