diff --git a/Dockerfile b/Dockerfile index 083e2f90..b9cab02a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,9 @@ WORKDIR /api COPY requirements.txt ./ # INSTALL DEPENDENCIES -RUN pip install -r requirements.txt +RUN pip install --no-cache-dir -r requirements.txt # COPY PROJECT -COPY . / +COPY . /api/ + +CMD ["uvicorn", "--host", "0.0.0.0", "app.main:APP"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index d78e92ac..6f599be8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,6 @@ services: build: . image: expdev07/coronavirus-tracker-api:2.0 restart: always - command: uvicorn --host 0.0.0.0 app.main:APP volumes: - .:/api ports: