From 5b1b75d67f8f512e0948990f583874af845f92d4 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Tue, 7 Apr 2020 17:59:54 +0200 Subject: [PATCH] who the fuck even knows --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 665f0be..0651273 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,16 +3,15 @@ FROM alpine:3.11 as builder RUN apk add --no-cache \ git \ npm \ - make \ bash \ python3 -ENV NODE_ENV=production +#ENV NODE_ENV=production # to get around errors from differing stack sizes in musl # https://wiki.musl-libc.org/functional-differences-from-glibc.html#Thread_stack_size RUN npm config set unsafe-perm true -RUN npm install -g webpack webpack-cli +RUN npm install -g webpack webpack-cli node-gyp ENV WIKIJS_VERSION=2.2.51 @@ -22,7 +21,9 @@ ADD nextcloud-auth.patch /build/nextcloud-auth.patch WORKDIR /build RUN git apply nextcloud-auth.patch RUN npm install -RUN make build +# don't why this is needed here too, but what the hell +RUN npm install --save-dev webpack webpack-cli +RUN npx webpack --profile --config dev/webpack/webpack.prod.js FROM thallian/confd-env:latest