add apidocjs docker task image build
This commit is contained in:
13
dockerfiles/tasks/apidocjs/Dockerfile
Normal file
13
dockerfiles/tasks/apidocjs/Dockerfile
Normal 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
|
||||
|
||||
6
dockerfiles/tasks/apidocjs/build.sh
Executable file
6
dockerfiles/tasks/apidocjs/build.sh
Executable 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
|
||||
Reference in New Issue
Block a user