1
0

define port in environment variable

This commit is contained in:
Jeddunk 2021-01-17 21:53:50 +01:00
parent 04525df9fa
commit 339ed1b315

View File

@ -1,8 +1,9 @@
ARG PORT=3000
ENV PORT=$PORT
# Use the official lightweight Node.js 12 image. # Use the official lightweight Node.js 12 image.
# https://hub.docker.com/_/node # https://hub.docker.com/_/node
FROM node:12-alpine FROM node:12-alpine
ARG PORT=3000
ENV PORT=$PORT
# Create and change to the app directory. # Create and change to the app directory.
WORKDIR /usr/src/app WORKDIR /usr/src/app
# Copy application dependency manifests to the container image. # Copy application dependency manifests to the container image.