File size: 683 Bytes
570769c
218d748
 
78f2b74
570769c
 
 
 
 
218d748
 
e911fb7
218d748
 
 
570769c
218d748
 
 
570769c
 
218d748
 
78f2b74
 
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
# Start from your original base python environment image
FROM python:3.9-slim

# Install basic system tools
RUN apt-get update && apt-get install -y \
    git \
    && rm -rf /var/lib/apt/lists/*

# Set up Hugging Face runtime user security compliance constraints
RUN useradd -m -u 1000 user
USER user

ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app

# Copy and install basic python packages
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt

# Copy remaining implementation assets safely
COPY --chown=user . /app
RUN mkdir -p /app/static

# Launch search_pipeline.py directly
CMD ["python", "search_pipeline.py"]