Skip to content

Commit

Permalink
Make port configurable from env
Browse files Browse the repository at this point in the history
  • Loading branch information
prasannavl committed Jan 4, 2025
1 parent 05a9528 commit 373c4a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]

0 comments on commit 373c4a6

Please sign in to comment.