Skip to content

Commit

Permalink
Merge branch 'api' of https://github.com/alanCrtl/archimicroprojet in…
Browse files Browse the repository at this point in the history
…to api
  • Loading branch information
mariemeSall committed Jan 28, 2024
2 parents 75a7fe6 + 836a074 commit b607ed0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.10
FROM python:3.11

WORKDIR /app

COPY ./requirements.txt /app/requirements.txt
COPY ./requirements.txt ./api/requirements.txt

RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf && pip install --upgrade pip && pip install -r requirements.txt
RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf && pip install -r ./api/requirements.txt

COPY ./ /api
COPY ./ ./api

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]

0 comments on commit b607ed0

Please sign in to comment.