add code execution environment

This commit is contained in:
Joe Li 2025-05-07 21:18:22 -07:00
parent a282604baa
commit 63b18d891f
3 changed files with 307 additions and 0 deletions

View 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"]