diff --git a/api/Dockerfile b/api/Dockerfile index 8cfa33f..d2f31ec 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -1,8 +1,7 @@ # syntax-docker/dockerfile:1 FROM python:3.10-slim -WORKDIR /app -COPY requirements.txt requirements.txt +COPY . . ENV PYTHONUNBUFFERED=1 RUN pip install --no-cache-dir -r requirements.txt -COPY . . CMD [ "python3", "main.py"] +EXPOSE 6969 diff --git a/api/main.py b/api/main.py index 31f188e..b4963a9 100644 --- a/api/main.py +++ b/api/main.py @@ -3,4 +3,4 @@ import multiprocessing if __name__ == "__main__": multiprocessing.freeze_support() - uvicorn.run('src.chatbots:api', host='127.0.0.1', port=6969, reload=True) + uvicorn.run('src.chatbots:api', host='0.0.0.0', port=6969, reload=True)