Fix webpack vs. node17

closes #542
This commit is contained in:
Matthias 2021-10-27 20:08:27 +02:00
parent 58bce4c162
commit d3a5a737a4

View File

@ -16,7 +16,10 @@ RUN apk add --update --no-cache python3 g++ make\
RUN yarn global add @vue/cli RUN yarn global add @vue/cli
COPY . /app COPY . /app
RUN yarn build
# The below flag should be removed, it's an incompatibility between
# webpack and node17
RUN NODE_OPTIONS=--openssl-legacy-provider yarn build
FROM nginx:1.21.3-alpine FROM nginx:1.21.3-alpine
COPY --from=ui-builder /app/dist /etc/nginx/html COPY --from=ui-builder /app/dist /etc/nginx/html