Spaces:
Sleeping
Sleeping
File size: 735 Bytes
ea535dd 156a3d9 9fa9756 ea535dd 156a3d9 303044c 156a3d9 b3f5b18 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | FROM python:3.11-slim
WORKDIR /home/app
# Updated to include build-essential and libpq-dev
RUN apt-get update && apt-get install -y \
curl \
unzip \
&& rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://get.deta.dev/cli.sh | sh
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
COPY requirements.txt /dependencies/requirements.txt
RUN pip install -r /dependencies/requirements.txt
CMD ["bash","-c","mlflow server \
--host 0.0.0.0 \
--port ${PORT} \
--backend-store-uri ${BACKEND_STORE_URI} \
--default-artifact-root ${ARTIFACT_STORE_URI} \
--serve-artifacts \
--allowed-hosts '*' \
--cors-allowed-origins '*' "]
|