Spaces:
Sleeping
Sleeping
File size: 678 Bytes
7e8109c 61ffc7c 7e8109c b6a6068 7e8109c e363d22 7e8109c a8e5053 7e8109c b6a6068 7e8109c 3bb403d |
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 29 |
# 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"] |