who the fuck even knows

This commit is contained in:
Sebastian Hugentobler 2020-04-07 17:59:54 +02:00
parent 23cc5a971c
commit 5b1b75d67f

View File

@ -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