hs2p-demo / Dockerfile
clems's picture
Fix Dockerfile and tissue mask overlay
5558ecf
Raw
History Blame Contribute Delete
390 Bytes
FROM waticlems/hs2p:latest
USER root
RUN apt-get update && apt-get install -y libopenslide-dev && rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir gradio openslide-python opencv-python-headless tifffile
WORKDIR /app
COPY app.py .
COPY data/ data/
RUN chmod -R a+r data/
USER user
EXPOSE 7860
ENV GRADIO_SERVER_NAME=0.0.0.0
ENV GRADIO_SERVER_PORT=7860
CMD ["python", "app.py"]