e0896e5dbe
[React ESI](https://github.com/dunglas/react-esi) is a brand new cache library for vanilla React and Next.js applications, that can make highly dynamic applications as fast as static sites by leveraging the open Edge Server Include specification. https://github.com/dunglas/react-esi Because this spec is widespread, React ESI natively supports most of the well-known cloud cache providers including Cloudflare Workers, Akamai and Fastly. Of course, React ESI also supports the open source Varnish cache server that you can use in your own infrastructure for free (configuration provided). This PR shows how to integrate React ESI with Next.js.
13 lines
253 B
Docker
13 lines
253 B
Docker
FROM cooptilleuls/varnish:6.0-alpine AS varnish
|
|
|
|
COPY docker/varnish/default.vcl /usr/local/etc/varnish/default.vcl
|
|
|
|
FROM node:11.5-alpine as node
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY . ./
|
|
RUN yarn install
|
|
RUN yarn build
|
|
CMD yarn start
|