define port in environment variable
This commit is contained in:
parent
04525df9fa
commit
339ed1b315
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user