Update build process a little.

This commit is contained in:
Gareth Latty
2020-12-31 01:25:27 +00:00
parent d3bf724180
commit 933d0760fb
5 changed files with 1874 additions and 558 deletions
+3 -1
View File
@@ -2,10 +2,12 @@ FROM node:14-alpine AS build
WORKDIR /md
RUN ["apk", "add", "--no-cache", "python", "make", "g++", "openjdk8-jre"]
RUN ["apk", "add", "--no-cache", "python", "make", "g++"]
ARG VERSION=dev
ENV MD_VERSION $VERSION
ARG MODE=production
ENV WEBPACK_MODE $MODE
COPY ["./package.json", "./package-lock.json", "./"]
RUN ["npm", "ci"]