mirror of
https://github.com/ION606/ML-pipeline.git
synced 2026-05-14 21:06:54 +00:00
added rudamentary search and code execution
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user