mirror of
https://github.com/microsoft/AI-Red-Teaming-Playground-Labs.git
synced 2026-06-07 16:03:54 +02:00
17 lines
502 B
Docker
17 lines
502 B
Docker
# docker build -f docker/plugins/rce-plugin/Dockerfile -t rce-plugin .
|
|
|
|
FROM mcr.microsoft.com/devcontainers/python:dev-3.12-bullseye
|
|
|
|
RUN adduser --system --no-create-home coderunner
|
|
|
|
WORKDIR /app
|
|
COPY src/chat-copilot/plugins/rce-plugin/requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY src/chat-copilot/plugins/rce-plugin .
|
|
|
|
RUN sed -i "s/localhost:5000/rce-challenge-service:8000/g" static/.well-known/ai-plugin.json
|
|
|
|
USER coderunner
|
|
EXPOSE 5000
|
|
CMD [ "python", "app.py" ]
|