From 9a08986adba7bbeea52a22fb6ea37d97e8823db3 Mon Sep 17 00:00:00 2001 From: Tiny-Paws <69763072+Tiny-Paws@users.noreply.github.com> Date: Thu, 31 Dec 2020 09:55:39 +0100 Subject: [PATCH] Exposing the service's port in the Dockerfile This change enables docker users to use the -P flag to automatically map local ports to the exposed ports. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 67a1d21..a280f76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,4 +5,6 @@ COPY package*.json ./ RUN npm install lodash RUN npm install COPY . . -CMD [ "npm", "start" ] \ No newline at end of file + +EXPOSE 9005 +CMD [ "npm", "start" ]