Fixed API authentication for files
This commit is contained in:
+4
-3
@@ -8,7 +8,8 @@ ENV PATH /usr/src/app/node_modules/.bin:$PATH
|
||||
|
||||
COPY package.json /usr/src/app/package.json
|
||||
|
||||
RUN npm install --verbose
|
||||
#RUN npm install --verbose
|
||||
RUN yarn install
|
||||
|
||||
# copy only required files to not trigger rebuilding every time
|
||||
COPY ./certs /usr/src/app/certs/
|
||||
@@ -19,9 +20,9 @@ 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 yarn add webpack@4.42.0
|
||||
|
||||
RUN npm run-script build
|
||||
RUN yarn build
|
||||
|
||||
# Production environment
|
||||
FROM nginx:latest
|
||||
|
||||
Reference in New Issue
Block a user