Éléonore Mayola commited on
Commit
f078263
1 Parent(s): 241a225

Update docker ignore, add Dockerfile

Browse files
Files changed (2) hide show
  1. .dockerignore +0 -1
  2. Dockerfile +20 -0
.dockerignore CHANGED
@@ -1,6 +1,5 @@
1
  .github/
2
  Dockerfile
3
- LICENSE
4
  README.md
5
  .gitignore
6
  .dockerignore
 
1
  .github/
2
  Dockerfile
 
3
  README.md
4
  .gitignore
5
  .dockerignore
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM condaforge/mambaforge:latest
2
+
3
+ # The HF Space container runs with user ID 1000.
4
+ RUN useradd -m -u 1000 user
5
+ USER user
6
+
7
+ # Set home to the user's home directory
8
+ ENV HOME=/home/user \
9
+ PATH=/home/user/.local/bin:$PATH
10
+
11
+ # Set the working directory to the user's home directory
12
+ WORKDIR $HOME/app
13
+ COPY --chown=user . .
14
+
15
+ RUN mamba env create --prefix $HOME/env -f ./environment.yml
16
+
17
+ EXPOSE 7860
18
+ WORKDIR $HOME/app
19
+
20
+ CMD mamba run -p $HOME/env --no-capture-output voila --no-browser notebooks/