Skip to content

Commit 99074ec

Browse files
committed
uvicorn command changed
1 parent ac21887 commit 99074ec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
FROM python:3.9-slim
22

33
# Set the working directory
4-
WORKDIR .
4+
WORKDIR /app
55

6-
# Copy requirements.txt file
6+
# Copy only requirements file first for better Docker caching
77
COPY requirements.txt .
88

99
# Install dependencies
@@ -12,12 +12,12 @@ RUN pip install --no-cache-dir --upgrade pip \
1212

1313
RUN pip install -U nltk
1414

15-
# Then copy the rest of the application files
16-
COPY . /app
15+
# Copy the rest of the application files
16+
COPY . .
1717

1818
# Expose the port FastAPI runs on
1919
EXPOSE 8000
2020

2121
# Define the entry point command
22-
CMD ["uvicorn", "main:app", "--reload"]
22+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
2323

0 commit comments

Comments
 (0)