Spaces:
Sleeping
Sleeping
# 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 | |