1 Star 0 Fork 0

alex/automata

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
Nolan Tremelling 提交于 2023-08-08 17:24 . Update notebook for tests (#466)
# Use official Python runtime as a parent image
FROM python:3.10-slim-buster
# Set the working directory in the container to the root of the project
WORKDIR /automata
# Install dependencies
RUN apt-get update && apt-get install -y gcc g++ curl git && rm -rf /var/lib/apt/lists/*
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs
RUN pip install --no-cache-dir poetry
# Copy the current directory contents (root of the project) into the container at /automata
COPY . .
# Initialize and update submodules
RUN git submodule update --init --recursive
RUN poetry config virtualenvs.create false
RUN poetry install
# Create a script that will be run when the container is started
RUN echo "#!/bin/bash\n\
set -e\n\
poetry run automata configure --GITHUB_API_KEY=\$GITHUB_API_KEY --OPENAI_API_KEY=\$OPENAI_API_KEY\n\
poetry run automata install-indexing --from-docker\n\
poetry run automata run-code-embedding\n\
poetry run automata run-doc-embedding --embedding-level=2\n\
exec \"\$@\"" > entrypoint.sh
RUN chmod +x entrypoint.sh
# Set this script as the entrypoint for the Docker container
ENTRYPOINT ["./entrypoint.sh"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/hyx007/automata.git
[email protected]:hyx007/automata.git
hyx007
automata
automata
main

搜索帮助