File size: 783 Bytes
adbf50c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
36
FROM python:3.10-slim

RUN pip3 install --no-cache-dir --upgrade pip
RUN apt-get update && apt-get install -y \
    build-essential \
    software-properties-common \
    git \
    ffmpeg \
    libsm6 \
    libxext6 \
    cmake \
    libgl1-mesa-glx

RUN pip3 install streamlit

RUN groupadd --gid 1000 appuser \
    && useradd --uid 1000 --gid 1000 -ms /bin/bash appuser

RUN mkdir -p /home/appuser/.cache /home/appuser/.config \
    && chown -R appuser:appuser /home/appuser

WORKDIR /home/appuser/blueprint
COPY --chown=appuser:appuser . .

RUN chmod +x demo/run.sh

USER appuser

ENV PATH="/home/appuser/.local/bin:${PATH}"
RUN mkdir -p /home/appuser/tmp && chmod 777 /home/appuser/tmp
ENV TMPDIR=/home/appuser/tmp

RUN pip3 install -e .

EXPOSE 8501
ENTRYPOINT ["./demo/run.sh"]