https://promptfoo.dev/ logo
In docker how i can init promptfoo?
# ❓|questions
c
After execution of docker i try promptfoo init, but not found I use " docker run -d --name promptfoo_container -p 3000:3000 -v c:\temp\promptfoo:/root/.promptfoo ghcr.io/promptfoo/promptfoo:main" I would also like to launch docker to run some tests and then die, but I don't understand what command to pass since it doesn't recognize it. (obviously to do this I will put a configuration file in the volume) Can you help me? https://cdn.discordapp.com/attachments/1281526931556401206/1281526932067979326/image.png?ex=66dc0a76&is=66dab8f6&hm=10c372ffc13e8521411ac6e7467fdc3f3ff613532847a8fb98ed4c152636c595&
u
This isn't supported right now because Docker doesn't recognize the promptfoo command line, it doesn't have the npm package installed globally. You'd need to setup a new docker configuration to do this, it would be pretty simple
Copy code
FROM node:20-alpine AS production

WORKDIR /app

ENV PROMPTFOO_HOSTED=true

RUN npm i -g promptfoo@latest

EXPOSE 15500