Skip to content

Modular logistics and supply chain operating system (LSOS)

Upgrade the console dockerfile to use node 18, patch the .s3deploy file to set correct cache-control header for json and xml files

Ronald A. Richardson7204ddb3a9c9
diff --git a/.s3deploy.yml b/.s3deploy.yml
index 14957b3b..8f46a307 100644
--- a/.s3deploy.yml
+++ b/.s3deploy.yml
@@ -7,7 +7,11 @@ routes:
headers:
Cache-Control: "max-age=600, no-transform, public"
gzip: false
- - route: "^.+\\.(html|xml|json)$"
+ - route: "^.+\\.(xml|json)$"
+ headers:
+ Cache-Control: "max-age=600, no-transform, public"
+ gzip: true
+ - route: "^.+\\.(html)$"
headers:
Cache-Control: "public, max-age=0, must-revalidate"
gzip: true
diff --git a/console/Dockerfile b/console/Dockerfile
index 7dd675a1..c9784e4c 100644
--- a/console/Dockerfile
+++ b/console/Dockerfile
@@ -1,5 +1,5 @@
# ---- Build Stage ----
-FROM node:16.20-alpine AS builder
+FROM node:18.15.0-alpine AS builder
# Set the working directory in the container to /app
WORKDIR /app