React 16 with server side rendering pm2 and grpc
1.1K
This is just a wrapper for react server rendering.
PM2 for clustering, api proxy server & serving react static templates ---
------------- CONFIG -------------
FROM node:8.11.2
RUN apt-get update && apt-get install -y
build-essential autoconf libtool pkg-config
automake libtool curl make g++ unzip
&& apt-get clean
ENV GRPC_RELEASE_TAG v1.12.x
RUN git clone -b ${GRPC_RELEASE_TAG} https://github.com/grpc/grpc /var/local/git/grpc &&
cd /var/local/git/grpc &&
git submodule update --init &&
echo "--- installing protobuf ---" &&
cd third_party/protobuf &&
./autogen.sh && ./configure --enable-shared &&
make -j$(nproc) && make -j$(nproc) check && make install && make clean && ldconfig &&
echo "--- installing grpc ---" &&
cd /var/local/git/grpc &&
make -j$(nproc) && make install && make clean && ldconfig
RUN npm i pm2 sw-precache -g
Content type
Image
Digest
Size
807.1 MB
Last updated
about 8 years ago
docker pull geraldatswoop/react-pm2