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
2 Replies
chanchalsen09
FREE
a month ago
how
Status changed to Solved medim • about 2 months ago
brody
EMPLOYEE
a month ago
!s