linter
This commit is contained in:
@@ -2,10 +2,13 @@ FROM python:3.13-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies and uv
|
||||
# Install system dependencies, Node.js, uv, and yarn
|
||||
RUN apt-get update && apt-get install -y \
|
||||
build-essential \
|
||||
curl \
|
||||
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||
&& apt-get install -y nodejs \
|
||||
&& npm install -g yarn \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
|
||||
@@ -18,15 +21,23 @@ COPY pyproject.toml ./
|
||||
# Install Python dependencies using uv
|
||||
RUN uv pip install --system -e .
|
||||
|
||||
# Create ChromaDB and database directories
|
||||
RUN mkdir -p /app/chromadb /app/database
|
||||
|
||||
# Expose port
|
||||
EXPOSE 8080
|
||||
# Copy frontend package files and install dependencies
|
||||
COPY raggr-frontend/package.json raggr-frontend/yarn.lock* raggr-frontend/
|
||||
WORKDIR /app/raggr-frontend
|
||||
RUN yarn install
|
||||
|
||||
# Copy application source code
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
# Build frontend
|
||||
WORKDIR /app/raggr-frontend
|
||||
RUN yarn build
|
||||
|
||||
# Create ChromaDB and database directories
|
||||
WORKDIR /app
|
||||
RUN mkdir -p /app/chromadb /app/database
|
||||
|
||||
# Make startup script executable
|
||||
RUN chmod +x /app/startup-dev.sh
|
||||
|
||||
@@ -35,5 +46,8 @@ ENV PYTHONPATH=/app
|
||||
ENV CHROMADB_PATH=/app/chromadb
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
# Expose port
|
||||
EXPOSE 8080
|
||||
|
||||
# Default command
|
||||
CMD ["/app/startup-dev.sh"]
|
||||
|
||||
Reference in New Issue
Block a user