1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/json-server/Dockerfile

19 lines
295 B
Docker
Raw Normal View History

2016-05-09 04:28:37 +02:00
#
# Dockerfile for json-server
#
2021-10-11 13:29:24 +02:00
FROM alpine:3
MAINTAINER EasyPi Software Foundation
2016-05-09 04:28:37 +02:00
RUN set -xe \
2017-07-10 11:02:16 +02:00
&& apk add --no-cache nodejs nodejs-npm \
2016-05-09 04:28:37 +02:00
&& npm install -g json-server \
&& rm -rf /tmp/npm* /var/cache/apk/*
2021-10-11 13:29:24 +02:00
WORKDIR /data
2016-05-09 04:28:37 +02:00
EXPOSE 3000
ENTRYPOINT ["json-server"]
CMD ["--help"]