2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-25 23:03:34 +01:00

add json-server

This commit is contained in:
kev
2016-05-09 10:28:37 +08:00
parent 1b598ed8ec
commit 95b0cb5345
5 changed files with 44 additions and 0 deletions

18
json-server/Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
#
# Dockerfile for json-server
#
FROM alpine
MAINTAINER kev <noreply@easypi.info>
WORKDIR /app
RUN set -xe \
&& apk add -U nodejs \
&& npm install -g json-server \
&& rm -rf /tmp/npm* /var/cache/apk/*
EXPOSE 3000
ENTRYPOINT ["json-server"]
CMD ["--help"]