Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-epsilla committed Oct 25, 2023
1 parent fb2fab3 commit 7d78504
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
8 changes: 6 additions & 2 deletions engine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM epsilla/base as builder
ADD ./ /vectordb
WORKDIR /vectordb
# ENV OATPP_INSTALL_PATH=/vectordb/build/dependencies
# RUN scripts/install_oatpp_modules.sh
ENV OATPP_INSTALL_PATH=/vectordb/build/dependencies
RUN scripts/install_oatpp_modules.sh
RUN mkdir -p /vectordb/build && cd /vectordb/build && cmake .. && make && chmod +x vectordb


Expand All @@ -13,6 +13,10 @@ ENV ENV_RELEASE_VERSION=$RELEASE_VERSION
COPY --from=builder /vectordb/build/vectordb /vectordb
COPY ./scripts/heartbeat.sh /heartbeat.sh
HEALTHCHECK --interval=600s --timeout=30s --retries=1000 CMD bash /heartbeat.sh || exit 0
RUN apt-get remove -y --auto-remove sudo python3 python3-pip libpython3-dev git cmake build-essential && \
apt-get purge -y --auto-remove sudo python3 python3-pip libpython3-dev git cmake build-essential && \
apt-get clean all && \
rm -rf /var/apt/lists/* /var/cache/apt/*

ENTRYPOINT ["/vectordb"]

10 changes: 1 addition & 9 deletions engine/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
FROM ubuntu:23.10

ENV OATPP_INSTALL_PATH=/vectordb/build/dependencies
WORKDIR /vectordb
ADD ./scripts/install_oatpp_modules.sh /vectordb/scripts/install_oatpp_modules.sh
RUN apt-get update && \
apt-get install -y --no-install-recommends git curl wget iproute2 supervisor cmake build-essential libgomp1 libboost-all-dev s3fs fuse ca-certificates && \
bash scripts/install_oatpp_modules.sh && \
apt-get remove -y --auto-remove git cmake build-essential && \
apt-get purge -y --auto-remove git cmake build-essential && \
apt-get install -y --no-install-recommends sudo python3 python3-pip libpython3-dev git curl wget iproute2 supervisor cmake build-essential libgomp1 libboost-all-dev s3fs fuse ca-certificates && \
apt-get clean all && \
rm -rf /var/apt/lists/* /var/cache/apt/*

# apt-get install -y sudo python3 python3-pip libpython3-dev

0 comments on commit 7d78504

Please sign in to comment.