Reduce docker build context size

This commit is contained in:
fdegier 2023-02-13 15:19:21 +01:00
commit 6ac8d0b081
10 changed files with 60 additions and 354 deletions

View file

@ -1,13 +0,0 @@
FROM python:3.10-slim-buster
WORKDIR /python-docker
COPY copilot_proxy/requirements.txt requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt
COPY copilot_proxy .
EXPOSE 5000
CMD ["uvicorn", "--host", "0.0.0.0", "--port", "5000", "app:app"]