From 339ed1b3157911a717ca185f35d3e2f3b20c81f6 Mon Sep 17 00:00:00 2001 From: Jeddunk Date: Sun, 17 Jan 2021 21:53:50 +0100 Subject: [PATCH] define port in environment variable --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 879cff1..6c58672 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,9 @@ -ARG PORT=3000 -ENV PORT=$PORT # Use the official lightweight Node.js 12 image. # https://hub.docker.com/_/node FROM node:12-alpine + +ARG PORT=3000 +ENV PORT=$PORT # Create and change to the app directory. WORKDIR /usr/src/app # Copy application dependency manifests to the container image.