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.
This commit is contained in:
Tiny-Paws
2020-12-31 09:55:39 +01:00
committed by GitHub
parent 86070f2214
commit 9a08986adb
+3 -1
View File
@@ -5,4 +5,6 @@ COPY package*.json ./
RUN npm install lodash
RUN npm install
COPY . .
CMD [ "npm", "start" ]
EXPOSE 9005
CMD [ "npm", "start" ]