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 | |
WORKDIR /app | |
RUN --mount=type=ssh mkdir -p ${APP_DATA_DIR} | |
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 | |
ENTRYPOINT ["python", "app.py"] | |