From fda528dbcbb1d52f2cd905f0708a29f4ba2f7c05 Mon Sep 17 00:00:00 2001 From: Ian Foster Date: Wed, 10 Nov 2021 12:09:03 -0800 Subject: [PATCH 1/2] only copy needed files to container --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7b19ed5..45d25b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ COPY package*.json ./ RUN npm ci -COPY . . +COPY *.js ./ EXPOSE 5000 From 9f3c68215838bcc2c4c164d4c6c836723f6b9d3c Mon Sep 17 00:00:00 2001 From: Ian Foster Date: Wed, 10 Nov 2021 12:20:54 -0800 Subject: [PATCH 2/2] update dockerignore --- .dockerignore | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 1691176..1a3442a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,11 @@ node_modules/ +.github/ +.git/ .vscode/ assets/ config.*.js docker-compose.*.yml -output/ \ No newline at end of file +docker-compose.yml +output/ +LICENSE +*.md \ No newline at end of file