Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use the official Alpine Linux as the base image
FROM python:3.9-alpine
FROM python:3.11-alpine

# Install Git
RUN apk update && apk add --no-cache git
Expand All @@ -10,11 +10,9 @@ WORKDIR /app
# Copy the package files to the working directory
COPY . .

# Install system dependencies
# RUN apk --no-cache add build-base libffi-dev

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
RUN python -m pip install --upgrade pip
RUN pip install .

# Set PYTHONPATH to the app directory
ENV PYTHONPATH=/app
Expand All @@ -23,4 +21,4 @@ ENV PYTHONPATH=/app
EXPOSE 8000

# Command to run the FastAPI server
CMD ["python", "semantic_matcher/service.py"]
CMD ["python", "semantic_matcher/service.py"]
9 changes: 9 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
semantic_matching_service:
build: .
container_name: semantic_matching_service
restart: unless-stopped
ports:
- "8000:8000"
working_dir: /app/semantic_matcher
command: ["python", "service.py"]