-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (22 loc) · 800 Bytes
/
Dockerfile
File metadata and controls
26 lines (22 loc) · 800 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
25
26
ARG BASEIMAGE=node:10-alpine
FROM ${BASEIMAGE}
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL mantainer="Eloy Lopez <elswork@gmail.com>" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="json-server" \
org.label-schema.description="json-server for amd64, arm32v7 arm64v8" \
org.label-schema.url="https://deft.work/" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/deftwork/json-server" \
org.label-schema.vendor="Deft Work" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
RUN npm install -g --production json-server && \
rm -rf /root/.npm /usr/lib/node_modules/npm
EXPOSE 3000
VOLUME [ "/data" ]
WORKDIR /data
ENTRYPOINT ["json-server", "--host", "0.0.0.0"]
CMD ["--help"]