Spaces:
Runtime error
Runtime error
File size: 877 Bytes
85b08fb ed943a2 85b08fb ed943a2 4545835 85b08fb ed943a2 85b08fb 4545835 ed943a2 854da36 ed943a2 e8d045e ed943a2 e8d045e ed943a2 | 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 | FROM agenticlabs/lsproxy:0.1.1
# Combine all apt operations and user/directory setup in one layer
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
git \
&& rm -rf /var/lib/apt/lists/* \
&& useradd -m -u 1000 appuser \
&& mkdir -p /mnt/workspace /usr/local/cargo \
&& chown -R appuser:appuser /mnt/workspace /usr/local/cargo
WORKDIR /app
COPY requirements.txt tutorial.py ./
RUN pip install --break-system-packages -r requirements.txt
EXPOSE 7860
# Combine git operations and file ownership changes in one layer
USER appuser
RUN git clone https://github.com/devflowinc/trieve /mnt/workspace && \
cd /mnt/workspace && \
git checkout e65889a13715e8833e7cccfe0168b57c1fc966cc
USER root
COPY start.sh /start.sh
RUN chmod +x /start.sh && chown -R appuser:appuser /mnt/workspace /start.sh /app
USER appuser
CMD ["/start.sh"] |