docker
This commit is contained in:
parent
407feec20e
commit
3103d8282c
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue