Dockerfile 648 Bytes
Newer Older
Alan Nelson's avatar
Alan Nelson committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM php:8.1-alpine

ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL org.label-schema.build-date=$BUILD_DATE \
      org.label-schema.name="PHP 8.1 linter" \
      org.label-schema.description="" \
      org.label-schema.vcs-ref=$VCS_REF \
      org.label-schema.vendor="University of Nebraska - Lincoln" \
      org.label-schema.version=$VERSION \
      org.label-schema.schema-version="1.0" \
      maintainer="Alan Nelson <alan.nelson@nebraska.edu>"

RUN apk add --no-cache bash

COPY php-lint docker-entrypoint /usr/local/bin/
RUN chmod 755 /usr/local/bin/docker-entrypoint /usr/local/bin/php-lint

ENTRYPOINT ["docker-entrypoint"]
CMD ["--help"]