mirror of
https://github.com/fleetbase/fleetbase.git
synced 2026-01-08 07:16:49 +00:00
Upgrade the console dockerfile to use node 18, patch the .s3deploy file to set correct cache-control header for json and xml files
This commit is contained in:
@@ -7,7 +7,11 @@ routes:
|
|||||||
headers:
|
headers:
|
||||||
Cache-Control: "max-age=600, no-transform, public"
|
Cache-Control: "max-age=600, no-transform, public"
|
||||||
gzip: false
|
gzip: false
|
||||||
- route: "^.+\\.(html|xml|json)$"
|
- route: "^.+\\.(xml|json)$"
|
||||||
|
headers:
|
||||||
|
Cache-Control: "max-age=600, no-transform, public"
|
||||||
|
gzip: true
|
||||||
|
- route: "^.+\\.(html)$"
|
||||||
headers:
|
headers:
|
||||||
Cache-Control: "public, max-age=0, must-revalidate"
|
Cache-Control: "public, max-age=0, must-revalidate"
|
||||||
gzip: true
|
gzip: true
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# ---- Build Stage ----
|
# ---- 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
|
# Set the working directory in the container to /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
Reference in New Issue
Block a user