Fixed API authentication for files

This commit is contained in:
frikky
2021-01-18 10:04:02 +01:00
parent 82f30a38d2
commit 6f945d1a68
8 changed files with 95 additions and 38 deletions
+4 -3
View File
@@ -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