mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
add code execution environment
This commit is contained in:
parent
a282604baa
commit
63b18d891f
3 changed files with 307 additions and 0 deletions
16
environments/code_execution_server/Dockerfile
Normal file
16
environments/code_execution_server/Dockerfile
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
FROM python:3
|
||||
|
||||
RUN echo "Acquire::http::Pipeline-Depth 0;" > /etc/apt/apt.conf.d/99custom && \
|
||||
echo "Acquire::http::No-Cache true;" >> /etc/apt/apt.conf.d/99custom && \
|
||||
echo "Acquire::BrokenProxy true;" >> /etc/apt/apt.conf.d/99custom
|
||||
|
||||
RUN apt-get update && apt-get upgrade -y \
|
||||
&& apt-get install -y build-essential
|
||||
|
||||
RUN pip install flask
|
||||
|
||||
WORKDIR /tmp
|
||||
|
||||
COPY server.py /tmp/server.py
|
||||
|
||||
CMD ["python", "server.py"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue