Use requirements.txt

This commit is contained in:
Jimmy 2021-12-04 01:16:01 +13:00
parent c5c57e14d6
commit c485861875
1 changed files with 2 additions and 9 deletions

View File

@ -1,13 +1,6 @@
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8-slim FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8-slim
ENV DOCKER=1 ENV DOCKER=1
RUN pip install fastapi \ COPY requirements.txt /app/requirements.txt
fastapi-responses \ RUN pip install -r /app/requirements.txt
uvicorn[standard] \
python-jose[cryptography] \
pytest \
requests \
pytest-asyncio \
passlib \
python-multipart
COPY ./app /app/app COPY ./app /app/app