MethylSight2 / Dockerfile
fcharih's picture
Update dockerfile
dd12fa0
raw
history blame contribute delete
812 Bytes
FROM python:latest
USER root
RUN apt-get update
RUN apt-get upgrade -y
#RUN apt-get install -y python3.12 wget
#RUN apt-get install -y python3-pip
#RUN apt install -y python3.12-venv
RUN apt-get install -y pkg-config
RUN apt-get install -y cmake
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/methylsight2
RUN python3 -m venv env
RUN env/bin/pip install flair
COPY requirements.txt $HOME/methylsight2
RUN env/bin/pip install -r requirements.txt
ADD --chown=user https://methylsight2.s3.us-east-2.amazonaws.com/weights.ckpt $HOME/methylsight2/methylsight2.ckpt
COPY model.py $HOME/methylsight2
COPY app.py $HOME/methylsight2
#ENTRYPOINT [ "/bin/bash", "-l", "-c" ]
CMD ["env/bin/uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]