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

fix json-server (FIX #187)

This commit is contained in:
kev
2021-10-11 19:29:24 +08:00
parent c95a77645a
commit 345bbc1996
3 changed files with 29 additions and 20 deletions

View File

@@ -2,16 +2,16 @@
# Dockerfile for json-server
#
FROM alpine
MAINTAINER kev <noreply@easypi.pro>
WORKDIR /data
FROM alpine:3
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apk add --no-cache nodejs nodejs-npm \
&& npm install -g json-server \
&& rm -rf /tmp/npm* /var/cache/apk/*
WORKDIR /data
EXPOSE 3000
ENTRYPOINT ["json-server"]