Ratankumar10/code-execution-engine
0
1FROM alpine:3.192 3# ─── Install compilers, Python, and utilities ───4RUN apk add --no-cache \5 gcc \6 g++ \7 musl-dev \8 python3 \9 bash \10 coreutils \11 && rm -rf /var/cache/apk/*12 13# ─── Copy runner script ───14COPY run.sh /usr/local/bin/run.sh15RUN chmod +x /usr/local/bin/run.sh16 17# ─── Create sandbox directory ───18RUN mkdir -p /sandbox && chmod 755 /sandbox19 20# ─── Create non-root user for running submitted code ───21RUN adduser -D -u 1000 judge22 23WORKDIR /sandbox24 25ENTRYPOINT ["/usr/local/bin/run.sh"]26 