From 10bfa67534189a40a7754923c68947a40124a0d5 Mon Sep 17 00:00:00 2001 From: Noza23 Date: Tue, 16 Apr 2024 15:48:06 +0200 Subject: [PATCH] fix: dockerfile --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e0bbfb9..5f390e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ FROM python:3.9.6 RUN apt-get update - +# Set the working directory to /app WORKDIR /app -RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt +COPY ./requirements.txt /app/requirements.txt -COPY . /app +RUN pip install --no-cache-dir -r requirements.txt -EXPOSE 8000 +COPY . /app -CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"] +CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0"]