lunde commited on
Commit
4f65b83
·
1 Parent(s): ba25ffe

fix: Add models and make dockerfile have user

Browse files
Files changed (2) hide show
  1. Dockerfile +8 -7
  2. solara_app/folders.py +5 -5
Dockerfile CHANGED
@@ -1,16 +1,17 @@
1
  FROM mcr.microsoft.com/vscode/devcontainers/miniconda:latest
2
 
3
- COPY env.yml .
 
 
 
 
4
  RUN conda env create -f env.yml
5
  RUN conda clean -a -y
 
6
 
7
  EXPOSE 8765
8
 
9
- COPY . /app
10
- WORKDIR /app
11
-
12
- RUN conda init
13
  RUN echo "source activate highlights" > ~/.bashrc
14
- ENV PATH /opt/conda/envs/highlights/bin:$PATH
15
 
16
- CMD solara run sol_app.py --host=0.0.0.0
 
1
  FROM mcr.microsoft.com/vscode/devcontainers/miniconda:latest
2
 
3
+ USER vscode
4
+
5
+ COPY --chown=vscode . /app
6
+ WORKDIR /app
7
+
8
  RUN conda env create -f env.yml
9
  RUN conda clean -a -y
10
+ RUN conda init
11
 
12
  EXPOSE 8765
13
 
 
 
 
 
14
  RUN echo "source activate highlights" > ~/.bashrc
15
+ ENV PATH /opt/conda/envs/highlights/bin/:$PATH
16
 
17
+ CMD ["solara", "run", "sol_app.py", "--host=0.0.0.0"]
solara_app/folders.py CHANGED
@@ -1,11 +1,11 @@
1
  from pathlib import Path
2
 
3
 
4
- TMP = Path("tmp")
5
- OUT = Path("out")
6
- DOWNLOADED = Path("downloaded")
7
- CONVERTED = Path("converted")
8
- CHECKPOINTS = Path("ckpts")
9
  _ALL_PATHS = [TMP, OUT, DOWNLOADED, CONVERTED, CHECKPOINTS]
10
 
11
 
 
1
  from pathlib import Path
2
 
3
 
4
+ TMP = Path("tmp").absolute()
5
+ OUT = Path("out").absolute()
6
+ DOWNLOADED = Path("downloaded").absolute()
7
+ CONVERTED = Path("converted").absolute()
8
+ CHECKPOINTS = Path("ckpts").absolute()
9
  _ALL_PATHS = [TMP, OUT, DOWNLOADED, CONVERTED, CHECKPOINTS]
10
 
11