1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-18 04:58:52 +02:00

19 lines
290 B
Docker
Raw Normal View History

2016-05-09 10:28:37 +08:00
#
# Dockerfile for json-server
#
FROM alpine
2017-05-08 07:05:07 +08:00
MAINTAINER kev <noreply@easypi.pro>
2016-05-09 10:28:37 +08:00
WORKDIR /app
RUN set -xe \
2017-07-10 17:02:16 +08:00
&& apk add --no-cache nodejs nodejs-npm \
2016-05-09 10:28:37 +08:00
&& npm install -g json-server \
&& rm -rf /tmp/npm* /var/cache/apk/*
EXPOSE 3000
ENTRYPOINT ["json-server"]
CMD ["--help"]