Error: $PORT is not a valid integer
ghoui
PROOP

a year 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

4 Replies

ghoui
PROOP

a year ago

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


chanchalsen09
FREE

10 months ago

how


chanchalsen09

how

10 months ago

Please open your own help thread!


Status changed to Solved medim 10 months ago


10 months ago

!s


Welcome!

Sign in to your Railway account to join the conversation.

Loading...