add apidocjs docker task image build

This commit is contained in:
2018-11-24 22:38:41 -05:00
parent f147488070
commit bb97f1b2e7
4 changed files with 112 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
# Using alpine linux for small image
# - http://gliderlabs.viewdocs.io/docker-alpine/
FROM alpine:3.4
MAINTAINER Richard Morgan <r_morgan@sympatico.ca>
LABEL version=2.0
# install system packages
RUN apk --no-cache add \
nodejs \
&& npm install apidoc -g
WORKDIR /src

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
docker build --rm -f Dockerfile -t apidocjs:latest .
docker run --rm --entrypoint php apidocjs --version | grep 'PHP 7.2.'
docker tag apidocjs:latest dkregistry.xai-corp.net:5000/xaicorp/apidocjs:latest
docker push dkregistry.xai-corp.net:5000/xaicorp/apidocjs:latest