Spaces:
Sleeping
Sleeping
| FROM python:3.11.6 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| WORKDIR /code | |
| RUN apt-get update | |
| RUN apt-get install -y openslide-tools | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| # Set the working directory to the user's home directory | |
| WORKDIR $HOME/app | |
| # Copy the current directory contents into the container at $HOME/app setting the owner to the user | |
| COPY --chown=user . $HOME/app | |
| RUN pip install -r requirements.txt | |
| CMD ["python", "app.py"] | |