surveillance / Dockerfile
camilleseab's picture
Fix opencv installation
e785fa3
raw
history blame contribute delete
582 Bytes
FROM condaforge/mambaforge:latest
# The HF Space container runs with user ID 1000.
RUN useradd -m -u 1000 user
USER user
# Set home to the user's home directory
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Set the working directory to the user's home directory
WORKDIR $HOME/app
COPY --chown=user . .
RUN mamba env create -n app -f ./environment.yml
EXPOSE 7860
WORKDIR $HOME/app
CMD mamba run -n app --no-capture-output voila \
--no-browser --port=7860 --show_tracebacks=True \
notebooks/app.ipynb
# CMD python3 -m voila --no-browser notebooks/ --port=7860