Skip to content

Commit 7f531d9

Browse files
committed
refactor: update Dockerfile to correct working directory and install requirements
1 parent 155a921 commit 7f531d9

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
FROM python:3.11-slim AS base
22

3-
WORKDIR /api
3+
WORKDIR /app
44

55
RUN apt-get update && apt-get install -y --no-install-recommends \
66
build-essential \
77
&& rm -rf /var/lib/apt/lists/*
88

9-
COPY requirements.txt .
10-
RUN pip install --no-cache-dir --upgrade pip \
11-
&& pip install --no-cache-dir -r requirements.txt
12-
139
COPY . .
1410

11+
RUN pip install --no-cache-dir --upgrade pip &&\
12+
pip install --no-cache-dir -r requirements/base.txt
13+
14+
WORKDIR /app/app
15+
1516
EXPOSE 8000
1617

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

0 commit comments

Comments
 (0)