agent: fix sandbox dockerfile
This commit is contained in:
parent
b447a743fb
commit
85820f4401
1 changed files with 4 additions and 4 deletions
|
@ -52,14 +52,14 @@ echo "
|
||||||
RUN mkdir /src /data
|
RUN mkdir /src /data
|
||||||
|
|
||||||
# Copy resources in increasing likelihood of change, to keep as much as possible cached
|
# Copy resources in increasing likelihood of change, to keep as much as possible cached
|
||||||
COPY fastify-requirements.txt /root
|
COPY fastify-requirements.txt /root/
|
||||||
RUN pip install -r /root/fastify-requirements.txt
|
RUN pip install -r /root/fastify-requirements.txt
|
||||||
COPY script-requirements.txt /root
|
COPY script-requirements.txt /root/
|
||||||
RUN pip install -r /root/script-requirements.txt
|
RUN pip install -r /root/script-requirements.txt
|
||||||
COPY fastify.py utils.py /root
|
COPY fastify.py utils.py /root/examples/agent/
|
||||||
|
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
ENTRYPOINT PYTHONPATH=/src python /root/fastify.py --port=$PORT '/src/$( basename "$script" )'
|
ENTRYPOINT PYTHONPATH=/src:/root python -m examples.agent.fastify --port=$PORT '/src/$( basename "$script" )'
|
||||||
" | docker build "$BUILD_DIR" -f - -t "$LLAMA_IMAGE_NAME"
|
" | docker build "$BUILD_DIR" -f - -t "$LLAMA_IMAGE_NAME"
|
||||||
|
|
||||||
echo "#"
|
echo "#"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue