forked from apidoc/apidoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (16 loc) · 691 Bytes
/
Dockerfile
File metadata and controls
24 lines (16 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Dockerfile for apidoc
FROM node:16-alpine
LABEL org.label-schema.name="apidoc" \
org.label-schema.description="apidoc Docker image" \
org.label-schema.url="http://apidocjs.com/" \
org.label-schema.vcs-url="https://github.com/apidoc/apidoc" \
org.label-schema.maintainer="rottmann@inveris.de" \
org.label-schema.schema-version="1.0" \
org.label-schema.docker.cmd="docker run --rm -v $(pwd):/home/node/apidoc apidoc/apidoc -o outputdir -i inputdir"
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
ENV PATH=$PATH:$NPM_CONFIG_PREFIX/bin
USER node
RUN mkdir -p /home/node/apidoc
WORKDIR /home/node/apidoc
RUN npm install --only=prod -g apidoc
ENTRYPOINT ["apidoc"]