Skip to content

Commit b7962cc

Browse files
committed
fix: Correct entrypoint
1 parent 1411623 commit b7962cc

File tree

3 files changed

+1124
-18
lines changed

3 files changed

+1124
-18
lines changed

Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@
22

33
FROM registry.access.redhat.com/ubi8/python-311:latest
44

5-
# Set the working directory
65
WORKDIR /app
76

8-
# Copy the requirements file and install dependencies
9-
COPY requirements.txt .
10-
RUN pip install --no-cache-dir -r requirements.txt
7+
COPY pyproject.toml poetry.lock* ./
8+
9+
RUN pip install poetry==1.6.1
10+
11+
RUN poetry export -f requirements.txt --without dev > requirements.txt && \
12+
pip install --no-cache-dir -r requirements.txt
1113

12-
# Copy the rest of the application code
1314
COPY . .
1415

15-
# Expose port 8000 for the FastAPI application
1616
EXPOSE 8080
1717

18-
# Run the FastAPI application with Uvicorn
19-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
18+
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8080"]

0 commit comments

Comments
 (0)