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