multifocal-stitching / Dockerfile
yuanchenyang's picture
Fixed path
a8e5053
raw
history blame contribute delete
No virus
678 Bytes
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile
FROM python:3.9
WORKDIR /code
RUN apt-get update && apt-get install python3-opencv -y
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME
RUN git clone https://github.com/yuanchenyang/multifocal-stitching.git multifocal-stitching
COPY --chown=user ./runapp.py $HOME/multifocal-stitching/runapp.py
WORKDIR $HOME/multifocal-stitching
CMD ["python", "runapp.py"]