File size: 519 Bytes
6ae272b
873af12
6ae272b
 
 
873af12
6ae272b
 
 
873af12
6ae272b
 
 
873af12
6ae272b
873af12
6ae272b
 
873af12
6ae272b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 --prefix $HOME/env  -f ./environment.yml

EXPOSE 7860
WORKDIR $HOME/app

CMD ["mamba", "run", "-p", "/home/user/env", "--no-capture-output", "voila", "--no-browser", "notebooks/"]