forked from Cloud-Code-AI/kaizen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (25 loc) · 920 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Use the official Python image as the base image
FROM python:3.12-slim
# Set the working directory in the container
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install Poetry
RUN pip install --no-cache-dir poetry
# Copy the poetry.lock and pyproject.toml files
COPY poetry.lock pyproject.toml ./
# Install dependencies
RUN poetry install --no-dev --no-root
# Copy the application code into the container
COPY . .
# Make the installation script executable
RUN chmod +x install_tree_sitter_languages.sh
# Run the Tree-sitter language installation script
RUN ./install_tree_sitter_languages.sh
# Expose the port on which the application will run
EXPOSE 8000
# Set the command to run the FastAPI application
CMD ["poetry", "run", "uvicorn", "github_app.main:app", "--host", "0.0.0.0", "--port", "8000"]