mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:36 +02:00
19 lines
272 B
Docker
19 lines
272 B
Docker
|
#
|
||
|
# 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"]
|