AI-application / Dockerfile
ahensd's picture
Update Dockerfile
f906e5b verified
raw
history blame contribute delete
377 Bytes
FROM python:3.11.0
COPY . .
WORKDIR /
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
# Get secrets
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true
RUN --mount=type=secret,id=MODEL_NAME,mode=0444,required=true
RUN --mount=type=secret,id=API_KEY,mode=0444,required=true
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]