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:
18
json-server/Dockerfile
Normal file
18
json-server/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user