added rudamentary search and code execution

This commit is contained in:
2025-04-01 22:29:59 -04:00
parent e02010d01f
commit b935b6002b
12 changed files with 989 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM python:3.11-slim
# Create non-root user
RUN adduser --disabled-password --gecos '' sandboxuser && \
chmod 755 /home/sandboxuser
# Set safe workspace
WORKDIR /sandbox
RUN chown sandboxuser:sandboxuser /sandbox
# minimal dependencies....idk
RUN apt-get update && \
apt-get install -y --no-install-recommends gcc python3-dev && \
rm -rf /var/lib/apt/lists/*
USER sandboxuser
ENTRYPOINT ["python", "/sandbox/script.py"]