mirror of
https://github.com/fauxpilot/fauxpilot.git
synced 2025-08-14 02:28:06 -07:00
Optimize Dockerfile and pin versions
This commit is contained in:
parent
6aa53f2eb3
commit
6b69437b7e
2 changed files with 13 additions and 10 deletions
|
@ -1,13 +1,13 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM python:3.8-slim-buster
|
||||
FROM python:3.10-slim-buster
|
||||
|
||||
WORKDIR /python-docker
|
||||
|
||||
COPY requirements.txt requirements.txt
|
||||
COPY copilot_proxy/requirements.txt requirements.txt
|
||||
|
||||
RUN pip3 install -r requirements.txt
|
||||
RUN pip3 install --extra-index-url https://pypi.ngc.nvidia.com regex fire tritonclient[all]
|
||||
|
||||
COPY . .
|
||||
COPY copilot_proxy .
|
||||
|
||||
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]
|
||||
EXPOSE 5000
|
||||
|
||||
CMD [ "uvicorn", "--host", "0.0.0.0", "--port", "5000", "app:app"]
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
numpy
|
||||
flask
|
||||
tokenizers
|
||||
fastapi==0.82.0
|
||||
numpy==1.23.2
|
||||
sse-starlette==1.1.6
|
||||
tokenizers==0.12.1
|
||||
tritonclient[all]==2.25.0
|
||||
uvicorn==0.18.3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue