diff --git a/Dockerfile b/Dockerfile index 7fa67ce..f40902e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM alpine -RUN apk add --update nodejs npm -ADD . . -RUN npm install +FROM alpine:latest +RUN apk add nodejs npm --no-cache +COPY . . +RUN npm install --only=prod CMD ["node", "index.js"] EXPOSE 9591 \ No newline at end of file