eval-assist / Dockerfile
msantillancooper's picture
Try to fix permission errors
b776c2f
raw
history blame contribute delete
527 Bytes
FROM python:3.12-slim
RUN groupadd --gid 1000 appuser \
&& useradd --uid 1000 --gid appuser --create-home appuser
WORKDIR /app
RUN chown -R appuser:appuser /app \
&& chmod -R 777 /app
USER appuser
# Create venv and install in workdir
RUN python3 -m venv venv
ENV VIRTUAL_ENV=/app/venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN pip install --upgrade pip \
&& pip install --no-cache-dir evalassist==0.1.12
ENV STORAGE_ENABLED="false"
ENV UVICORN_WORKERS=4
CMD ["eval-assist", "serve", "--host", "0.0.0.0", "--port", "7860"]