EC2EXO / Dockerfile
nath13huggingface's picture
deux
ff4fdac
Raw
History Blame Contribute Delete
864 Bytes
FROM continuumio/miniconda3
WORKDIR /home/app
RUN useradd -m mlflowuser
RUN mkdir -p /home/app/artifacts && \
chown mlflowuser:mlflowuser /home/app/artifacts && \
chmod 755 /home/app/artifacts
RUN apt-get update
RUN apt-get install nano unzip
RUN apt install curl -y
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
ENV AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
ENV AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
ENV BACKEND_STORE_URI=$BACKEND_STORE_URI
ENV ARTIFACT_ROOT=$ARTIFACT_ROOT
CMD mlflow server -p $PORT \
--host 0.0.0.0 \
--backend-store-uri $BACKEND_STORE_URI \
--default-artifact-root $ARTIFACT_ROOT