Marek Bukowicki commited on
Commit
12d7151
·
1 Parent(s): 0120aad

update Dockerfile and requirements

Browse files
Files changed (2) hide show
  1. Dockerfile +7 -2
  2. pyproject.toml +2 -1
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.10 AS build
2
 
3
  RUN useradd -m -u 1000 user
4
  USER user
@@ -18,7 +18,12 @@ RUN pip install --no-cache-dir .[cpu,gui] --extra-index-url https://download.pyt
18
 
19
  FROM build AS final
20
 
21
- COPY --chown=user . .
 
 
 
 
 
22
 
23
  # download weights
24
  RUN python download_files.py --overwrite
 
1
+ FROM python@sha256:e2c7fb05741c735679b26eda7dd34575151079f8c615875fbefe401972b14d85 AS build
2
 
3
  RUN useradd -m -u 1000 user
4
  USER user
 
18
 
19
  FROM build AS final
20
 
21
+ # copy dirs used at inference time
22
+ COPY --chown=user configs configs
23
+ COPY --chown=user shimnet shimnet
24
+ # copy files used at inference time
25
+ COPY --chown=user predict-gui.py .
26
+ COPY --chown=user download_files.py .
27
 
28
  # download weights
29
  RUN python download_files.py --overwrite
pyproject.toml CHANGED
@@ -48,7 +48,8 @@ gui = [
48
  "plotly==6.0.1",
49
  "ipykernel",
50
  "psutil",
51
- "pexpect"
 
52
  ]
53
 
54
  # lightweight verion for Colab or another environment with pre-installed torch and common packages
 
48
  "plotly==6.0.1",
49
  "ipykernel",
50
  "psutil",
51
+ "pexpect",
52
+ "requests"
53
  ]
54
 
55
  # lightweight verion for Colab or another environment with pre-installed torch and common packages