Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Services/AIService/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
&& rm -rf /var/lib/apt/lists/*

# Copy requirements first for better caching
# Build context should be the AIService directory (where Dockerfile is located)
COPY requirements.txt .
COPY requirements-dev.txt .

Expand Down Expand Up @@ -89,7 +90,9 @@
COPY --from=builder /usr/local/bin /usr/local/bin

# Copy application code
COPY src/Services/AIService/app ./app
# Build context is expected to be the repo root, but if it's the AIService directory, use relative path
COPY app ./app
COPY requirements.txt ./
# COPY proto ./proto

# Create non-root user
Expand All @@ -106,5 +109,5 @@

# Run application
# Use PORT environment variable if set, otherwise default to 8000
CMD sh -c "uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8000}"

Check warning on line 112 in src/Services/AIService/Dockerfile

View workflow job for this annotation

GitHub Actions / build (rosie91/stemify:ai-service, src/Services/AIService, src/Services/AIService)

JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals

JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals More info: https://docs.docker.com/go/dockerfile/rule/json-args-recommended/