Error: $PORT is not a valid integer
ghoui
PROOP

3 months ago

Error Logs:

Error: Invalid value for '--port': '$PORT' is not a valid integer.
Usage: uvicorn [OPTIONS] APP
Try 'uvicorn --help' for help.
Error: Invalid value for '--port': '$PORT' is not a valid integer.
Usage: uvicorn [OPTIONS] APP
Try 'uvicorn --help' for help.
Error: Invalid value for '--port': '$PORT' is not a valid integer.

Source code for the docker:

FROM python:3.13

# system dependencies

WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app ./app

CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port $PORT"]

settings:
buil
docker build -t carpal-core .
start-up
uvicorn app.main:app --host 0.0.0.0 --port $PORT
also set the $port IN VARIABLES TO 8000 but nothing

Solved

2 Replies

ghoui
PROOP

3 months ago

Nevermind fixed the issue. in settings i just set a certain port number


chanchalsen09
FREE

a month ago

how


chanchalsen09

how

medim
MODERATOR

a month ago

Please open your own help thread!


Status changed to Solved medim about 2 months ago


brody
EMPLOYEE

a month ago

!s


Loading...