From de59293cc3cd279c2bd10fa57b3219eb84b5e467 Mon Sep 17 00:00:00 2001 From: Julius von Froreich Date: Thu, 26 Jul 2018 12:09:06 +0200 Subject: [PATCH] initial commit --- Dockerfile | 22 ++++++++++++++++++++++ environment | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 Dockerfile create mode 100644 environment diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6c6ad74 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +# Node LTS +FROM node:8.11.3-slim + +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + git \ + python \ + make \ + gcc \ + g++ \ + libc6-dev + +RUN git clone https://github.com/Financial-Times/polyfill-service.git /polyfill + +WORKDIR /polyfill + +RUN npm run install + +EXPOSE 8801 + +CMD ["node" ,"--optimize_for_size" ,"--max_old_space_size=460" ,"--gc_interval=100" ,"packages/polyfill-service/bin/polyfill-service"] + diff --git a/environment b/environment new file mode 100644 index 0000000..1111690 --- /dev/null +++ b/environment @@ -0,0 +1,2 @@ +PORT=80 +NODE_ENV=dev