Skip to content

Commit 9eba6a7

Browse files
authored
Fix COPY on dockerfile. (#272)
1 parent 5b01979 commit 9eba6a7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ WORKDIR /api
1111
COPY requirements.txt ./
1212

1313
# INSTALL DEPENDENCIES
14-
RUN pip install -r requirements.txt
14+
RUN pip install --no-cache-dir -r requirements.txt
1515

1616
# COPY PROJECT
17-
COPY . /
17+
COPY . /api/
18+
19+
CMD ["uvicorn", "--host", "0.0.0.0", "app.main:APP"]

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ services:
55
build: .
66
image: expdev07/coronavirus-tracker-api:2.0
77
restart: always
8-
command: uvicorn --host 0.0.0.0 app.main:APP
98
volumes:
109
- .:/api
1110
ports:

0 commit comments

Comments
 (0)