File size: 755 Bytes
ffbe1f3
 
 
 
 
 
 
 
 
 
64e9ef3
a869277
 
64e9ef3
 
6f96e1c
a869277
4091a4d
 
ffbe1f3
 
 
 
 
 
 
 
d834b96
ffbe1f3
d834b96
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
# syntax=docker/dockerfile:1.0.0-experimental
FROM taprosoft/kotaemon:v1.0 as base_image
ARG APP_DATA_DIR=/home/ubuntu/lib-knowledgehub/kotaemon/

RUN apt update -qqy \
  && apt install -y unzip \
  && \
  apt-get clean && \
  apt-get autoremove

RUN --mount=type=ssh mkdir -p ${APP_DATA_DIR}

RUN useradd -m -u 1000 user
RUN --mount=type=ssh chown -R user:user /app
RUN --mount=type=ssh chown -R user:user ${APP_DATA_DIR}
RUN --mount=type=ssh chown -R user:user /usr/local/lib/python3.10

USER user
WORKDIR /app

COPY ktem_app_data.zip ${APP_DATA_DIR}
COPY flowsettings.py /app

RUN --mount=type=ssh cd ${APP_DATA_DIR} \
  && unzip ktem_app_data.zip \
  && rm ktem_app_data.zip

ENV GRADIO_SERVER_NAME=0.0.0.0
ENTRYPOINT ["python", "app.py"]
EXPOSE 7860