From a8a69573dc78e65df70eefe25bf750805f37e389 Mon Sep 17 00:00:00 2001 From: "Quentin McGaw (desktop)" Date: Sat, 11 Jan 2020 20:14:17 +0000 Subject: [PATCH] Production build of Stackedit --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 31393c9..70c18e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,12 +14,13 @@ RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o app main.go FROM alpine:${ALPINE_VERSION} AS stackedit ARG STACKEDIT_VERSION WORKDIR /stackedit -RUN apk add -q --progress --update --no-cache git npm +RUN apk add -q --progress --update --no-cache git npm python2 RUN wget -q https://github.com/benweet/stackedit/archive/${STACKEDIT_VERSION}.tar.gz -O stackedit.tar.gz && \ tar -xzf stackedit.tar.gz --strip-components=1 && \ rm stackedit.tar.gz -#ENV NODE_ENV production RUN npm install +RUN npm audit fix +ENV NODE_ENV=production RUN npm run build FROM scratch AS final