diff --git a/2.7.0/Dockerfile b/2.7.0/Dockerfile deleted file mode 100644 index bc7d940..0000000 --- a/2.7.0/Dockerfile +++ /dev/null @@ -1,19 +0,0 @@ -FROM php:7.0.12-alpine - -MAINTAINER herloct - -RUN apk update --no-cache \ - && apk add --no-cache su-exec \ - && rm -rf /var/cache/apk/* /var/tmp/* /tmp/* - -RUN curl -L https://github.com/squizlabs/PHP_CodeSniffer/releases/download/2.7.0/phpcbf.phar > /usr/local/bin/phpcbf \ - && chmod +x /usr/local/bin/phpcbf - -RUN mkdir -p /project -VOLUME ["/project"] -WORKDIR /project - -COPY entrypoint.sh /usr/local/bin/entrypoint.sh - -ENTRYPOINT ["entrypoint.sh", "phpcbf"] -CMD ["--version"] diff --git a/2.7.0/entrypoint.sh b/2.7.0/entrypoint.sh deleted file mode 100755 index 86623fa..0000000 --- a/2.7.0/entrypoint.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -# Add local user -# Either use the LOCAL_USER_ID if passed in at runtime or -# fallback - -USER_ID=${LOCAL_USER_ID:-9001} - -echo "Starting with UID : $USER_ID" -adduser -D -s /bin/sh -u $USER_ID user -chown -R user:user /project -export HOME=/home/user - -su-exec user "$@"