cognee/Dockerfile-vanilla
2024-06-23 00:36:34 +02:00

30 lines
663 B
Text

FROM python:3.11-slim
# Set build argument
ARG DEBUG
# Set environment variable based on the build argument
ENV DEBUG=${DEBUG}
ENV PIP_NO_CACHE_DIR=true
ENV PATH="${PATH}:/root/.poetry/bin"
WORKDIR /app
COPY pyproject.toml poetry.lock /app/
RUN pip install poetry
# Create virtualenv
RUN poetry config virtualenvs.create false
# Install the dependencies
RUN poetry install --no-root --no-dev
# Set the PYTHONPATH environment variable to include the /app directory
ENV PYTHONPATH=/app
COPY cognee/ /app/cognee
COPY entrypoint-vanilla.sh /app/entrypoint-vanilla.sh
RUN chmod +x /app/entrypoint-vanilla.sh
ENTRYPOINT ["/app/entrypoint-vanilla.sh"]