Added setup documentation and cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user