SurgVLLM / Dockerfile
yaziciz's picture
Update Dockerfile
de9d813 verified
raw
history blame
808 Bytes
FROM yaziciz/deepsurg_vllm_v1
# Install system dependency required for OpenCV.
RUN apt-get update && apt-get install -y libgl1-mesa-glx
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
# Explicitly copy the environment file first.
COPY --chown=user environment.yml $HOME/app/environment.yml
# Then copy the rest of the application files.
COPY --chown=user . $HOME/app/
# (Optional) Debug: List files in $HOME/app to verify environment.yml is present.
RUN ls -la $HOME/app
# Create the conda environment using the absolute path to the environment file.
RUN conda env create -f $HOME/app/environment.yml
# Run demo.py using the 'ssgqa' conda environment.
CMD ["conda", "run", "--no-capture-output", "-n", "ssgqa", "python", "demo.py"]