From 373c4a6cf9edec2b5ae9616421c3fae7a5c06ad9 Mon Sep 17 00:00:00 2001 From: Prasanna Loganathar Date: Sat, 4 Jan 2025 11:50:08 +0800 Subject: [PATCH] Make port configurable from env --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 46b2ea389..878bab12c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,7 @@ ENV NODE_ENV=production # or will have CSP errors ENV NEXT_PUBLIC_RPC_CLIENT_ENDPOINT=https://ocean.defichain.com/v0/mainnet/rpc ENV NEXT_PUBLIC_API_CLIENT_ENDPOINT=https://ocean.defichain.com +ENV PORT=3000 # For HTTP testing only # ENV NODE_TLS_REJECT_UNAUTHORIZED=0 @@ -22,5 +23,5 @@ ENV NEXT_PUBLIC_API_CLIENT_ENDPOINT=https://ocean.defichain.com RUN npm run build -EXPOSE 3000 +EXPOSE ${PORT} CMD ["npm", "run", "start"]