Added setup documentation and cleanup

This commit is contained in:
frikky
2020-08-24 19:36:09 +02:00
parent d572aac7fb
commit 41da4de09d
5 changed files with 419 additions and 50 deletions
+6
View File
@@ -2,8 +2,10 @@
FROM node as builder
RUN mkdir /usr/src/app
WORKDIR /usr/src/app
ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY package.json /usr/src/app/package.json
RUN npm install --verbose
@@ -15,6 +17,10 @@ COPY ./src /usr/src/app/src/
COPY ./*.sh /usr/src/app/
COPY ./*.json /usr/src/app/
# There were issues with the webpack installer from package.json
RUN rm -rf /usr/src/app/node_modules/webpack
RUN npm install webpack@4.42.0
RUN npm run-script build
# Production environment