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"]