fi: trying to make frontend build faster
This commit is contained in:
+1
-1
@@ -29,4 +29,4 @@ shuffle-database/nodes
|
|||||||
shuffle-database/performance_analyzer_enabled.conf
|
shuffle-database/performance_analyzer_enabled.conf
|
||||||
shuffle-database/rca_enabled.conf
|
shuffle-database/rca_enabled.conf
|
||||||
|
|
||||||
*/package-lock.json
|
#*/package-lock.json
|
||||||
|
|||||||
+4
-4
@@ -8,13 +8,13 @@ WORKDIR /usr/src/app
|
|||||||
ENV PATH /usr/src/app/node_modules/.bin:$PATH
|
ENV PATH /usr/src/app/node_modules/.bin:$PATH
|
||||||
|
|
||||||
COPY package.json /usr/src/app/package.json
|
COPY package.json /usr/src/app/package.json
|
||||||
|
COPY package-lock.json /usr/src/app/package-lock.json
|
||||||
|
|
||||||
# Nocache yarn install
|
|
||||||
RUN npm config set fetch-retries 3 # Number of retry attempts (default is 2)
|
RUN npm config set fetch-retries 3 # Number of retry attempts (default is 2)
|
||||||
RUN npm config set fetch-retry-mintimeout 5000 # Minimum wait time before retrying (in ms, default is 10000)
|
RUN npm config set fetch-retry-mintimeout 5000 # Minimum wait time before retrying (in ms, default is 10000)
|
||||||
RUN npm config set fetch-retry-maxtimeout 60000 # Maximum wait time before retrying (in ms, default is 60000)
|
RUN npm config set fetch-retry-maxtimeout 60000 # Maximum wait time before retrying (in ms, default is 60000)
|
||||||
RUN npm config set fetch-timeout 60000 # Overall fetch timeout (in ms, default is 300000)
|
RUN npm config set fetch-timeout 60000 # Overall fetch timeout (in ms, default is 300000)
|
||||||
RUN npm install --timeout=60000 --legacy-peer-deps
|
RUN npm ci --legacy-peer-deps
|
||||||
|
|
||||||
# copy only required files to not trigger rebuilding every time
|
# copy only required files to not trigger rebuilding every time
|
||||||
COPY ./certs /usr/src/app/certs/
|
COPY ./certs /usr/src/app/certs/
|
||||||
@@ -36,7 +36,7 @@ RUN mkdir -p /usr/share/nginx/html/img
|
|||||||
|
|
||||||
|
|
||||||
# Localhost certificate challenge: Y#XwrJ#DoZGz2w6x
|
# Localhost certificate challenge: Y#XwrJ#DoZGz2w6x
|
||||||
# Cert challenge doesn't matter to be here or not, as ALL production setups should be using their own certificates + reverse proxy: https://shuffler.io/docs/configuration#using-the-nginx-reverse-proxy-for-tls/ssl
|
# Cert challenge doesn't matter to be here or not, as ALL production setups should be using their own certificates + reverse proxy: https://shuffler.io/docs/configuration#using-the-nginx-reverse-proxy-for-tls/ssl
|
||||||
COPY --from=builder /usr/src/app/build /usr/share/nginx/html
|
COPY --from=builder /usr/src/app/build /usr/share/nginx/html
|
||||||
COPY --from=builder /usr/src/app/certs/fullchain.pem /etc/nginx/fullchain.cert.pem
|
COPY --from=builder /usr/src/app/certs/fullchain.pem /etc/nginx/fullchain.cert.pem
|
||||||
COPY --from=builder /usr/src/app/certs/privkey.pem /etc/nginx/privkey.pem
|
COPY --from=builder /usr/src/app/certs/privkey.pem /etc/nginx/privkey.pem
|
||||||
@@ -45,7 +45,7 @@ COPY --from=builder /usr/src/app/certs/privkey.pem /etc/nginx/privkey.pem
|
|||||||
RUN apt-get update && apt-get install -y curl && apt-get clean
|
RUN apt-get update && apt-get install -y curl && apt-get clean
|
||||||
COPY ./confd/templates/nginx.conf /etc/nginx/nginx.conf.tmpl
|
COPY ./confd/templates/nginx.conf /etc/nginx/nginx.conf.tmpl
|
||||||
|
|
||||||
## OLD CONFD THINGS (not compatible with arm)
|
## OLD CONFD THINGS (not compatible with arm)
|
||||||
#ENV CONFD_VERSION 0.16.0
|
#ENV CONFD_VERSION 0.16.0
|
||||||
#RUN curl -sSL https://github.com/kelseyhightower/confd/releases/download/v${CONFD_VERSION}/confd-${CONFD_VERSION}-linux-amd64 -o /usr/local/bin/confd && \
|
#RUN curl -sSL https://github.com/kelseyhightower/confd/releases/download/v${CONFD_VERSION}/confd-${CONFD_VERSION}-linux-amd64 -o /usr/local/bin/confd && \
|
||||||
# chmod +x /usr/local/bin/confd
|
# chmod +x /usr/local/bin/confd
|
||||||
|
|||||||
Generated
+28356
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user