From 691044d6d626e696be6c9af73f7744219173faa7 Mon Sep 17 00:00:00 2001 From: "Julius von Froreich (jvf)" Date: Tue, 31 Jul 2018 14:36:58 +0200 Subject: [PATCH] remove environment file and inline the environment variables incorporate @dodekeract's criticism, thanks! --- Dockerfile | 5 ++++- environment | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 environment diff --git a/Dockerfile b/Dockerfile index 6c6ad74..e32b60f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,10 @@ WORKDIR /polyfill RUN npm run install -EXPOSE 8801 +ENV PORT 8801 +ENV NODE_ENV dev + +EXPOSE ${PORT} 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 deleted file mode 100644 index 1111690..0000000 --- a/environment +++ /dev/null @@ -1,2 +0,0 @@ -PORT=80 -NODE_ENV=dev