Port and BIND Env are not working in Dockerfile
kmkmjhyiiiu opened this issue · 1 comments
kmkmjhyiiiu commented
Hi,
am i doing something wrong here? i set Different PORT
number in environment. Here is my Dockerfile:
FROM tiangolo/uvicorn-gunicorn:python3.9
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt
WORKDIR /app
COPY . /app
ENV MODULE_NAME "web"
ENV VARIABLE_NAME "application"
ENV APP_MODULE "web:application"
ENV BIND "0.0.0.0:5000"
ENV ERROR_LOG "logs/error.log"
I tried Both APP_MODULE
and PORT
but no luck. Its still running on port 80
.
kmkmjhyiiiu commented
Sorry, its working. Something wrong from my side.