dsmueller commited on
Commit
466dea5
1 Parent(s): 7ad1a29

Update Dockerfile and dependencies

Browse files
Files changed (3) hide show
  1. Dockerfile +3 -8
  2. poetry.lock +19 -7
  3. requirements.txt +3 -2
Dockerfile CHANGED
@@ -11,17 +11,12 @@ ENV HOME=/home/user \
11
  # COPY --chown=user . $HOME/app
12
 
13
  # Set the working directory in the container
 
14
  WORKDIR $HOME/app
15
 
16
  # Copy the current directory contents into the container at /usr/src/app
17
  # COPY . .
18
- COPY --chown=user . $HOME/app
19
-
20
- # Install dependencies
21
- # RUN poetry config virtualenvs.create false \
22
- # && poetry install --no-interaction --no-ansi
23
- # Streamlit must be installed separately. Potentially this will cause an issue with dependencies in the future, but it's the only way it works.
24
- # RUN pip3 install streamlit
25
 
26
  # Switch to root user
27
  USER root
@@ -32,7 +27,7 @@ RUN apt-get update && \
32
  # curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
33
  # export PATH="/root/.cargo/bin:${PATH}" && \
34
  # pip install --upgrade pip && \
35
- pip install -r requirements.txt
36
 
37
  # Make a port available to the world outside this container
38
  # The EXPOSE instruction informs Docker that the container listens on the specified network ports at runtime. Your container needs to listen to Streamlit’s (default) port 8501.
 
11
  # COPY --chown=user . $HOME/app
12
 
13
  # Set the working directory in the container
14
+ # WORKDIR /app
15
  WORKDIR $HOME/app
16
 
17
  # Copy the current directory contents into the container at /usr/src/app
18
  # COPY . .
19
+ COPY --chownuser . $HOME/app
 
 
 
 
 
 
20
 
21
  # Switch to root user
22
  USER root
 
27
  # curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
28
  # export PATH="/root/.cargo/bin:${PATH}" && \
29
  # pip install --upgrade pip && \
30
+ # pip install -r requirements.txt
31
 
32
  # Make a port available to the world outside this container
33
  # The EXPOSE instruction informs Docker that the container listens on the specified network ports at runtime. Your container needs to listen to Streamlit’s (default) port 8501.
poetry.lock CHANGED
@@ -845,19 +845,19 @@ tests = ["pytest", "pytest-cov", "pytest-xdist"]
845
 
846
  [[package]]
847
  name = "datasets"
848
- version = "2.14.4"
849
  description = "HuggingFace community-driven open-source library of datasets"
850
  optional = false
851
  python-versions = ">=3.8.0"
852
  files = [
853
- {file = "datasets-2.14.4-py3-none-any.whl", hash = "sha256:29336bd316a7d827ccd4da2236596279b20ca2ac78f64c04c9483da7cbc2459b"},
854
- {file = "datasets-2.14.4.tar.gz", hash = "sha256:ef29c2b5841de488cd343cfc26ab979bff77efa4d2285af51f1ad7db5c46a83b"},
855
  ]
856
 
857
  [package.dependencies]
858
  aiohttp = "*"
859
  dill = ">=0.3.0,<0.3.8"
860
- fsspec = {version = ">=2021.11.1", extras = ["http"]}
861
  huggingface-hub = ">=0.14.0,<1.0.0"
862
  multiprocess = "*"
863
  numpy = ">=1.17"
@@ -865,6 +865,7 @@ packaging = "*"
865
  pandas = "*"
866
  Pillow = {version = ">=6.2.1", optional = true, markers = "extra == \"vision\""}
867
  pyarrow = ">=8.0.0"
 
868
  pyyaml = ">=5.1"
869
  requests = ">=2.19.0"
870
  tqdm = ">=4.62.1"
@@ -1187,13 +1188,13 @@ files = [
1187
 
1188
  [[package]]
1189
  name = "fsspec"
1190
- version = "2023.12.2"
1191
  description = "File-system specification"
1192
  optional = false
1193
  python-versions = ">=3.8"
1194
  files = [
1195
- {file = "fsspec-2023.12.2-py3-none-any.whl", hash = "sha256:d800d87f72189a745fa3d6b033b9dc4a34ad069f60ca60b943a63599f5501960"},
1196
- {file = "fsspec-2023.12.2.tar.gz", hash = "sha256:8548d39e8810b59c38014934f6b31e57f40c1b20f911f4cc2b85389c7e9bf0cb"},
1197
  ]
1198
 
1199
  [package.dependencies]
@@ -3009,6 +3010,17 @@ files = [
3009
  [package.dependencies]
3010
  numpy = ">=1.16.6"
3011
 
 
 
 
 
 
 
 
 
 
 
 
3012
  [[package]]
3013
  name = "pyasn1"
3014
  version = "0.5.1"
 
845
 
846
  [[package]]
847
  name = "datasets"
848
+ version = "2.14.7"
849
  description = "HuggingFace community-driven open-source library of datasets"
850
  optional = false
851
  python-versions = ">=3.8.0"
852
  files = [
853
+ {file = "datasets-2.14.7-py3-none-any.whl", hash = "sha256:1a64041a7da4f4130f736fc371c1f528b8ddd208cebe156400f65719bdbba79d"},
854
+ {file = "datasets-2.14.7.tar.gz", hash = "sha256:394cf9b4ec0694b25945977b16ad5d18d5c15fb0e94141713eb8ead7452caf9e"},
855
  ]
856
 
857
  [package.dependencies]
858
  aiohttp = "*"
859
  dill = ">=0.3.0,<0.3.8"
860
+ fsspec = {version = ">=2023.1.0,<=2023.10.0", extras = ["http"]}
861
  huggingface-hub = ">=0.14.0,<1.0.0"
862
  multiprocess = "*"
863
  numpy = ">=1.17"
 
865
  pandas = "*"
866
  Pillow = {version = ">=6.2.1", optional = true, markers = "extra == \"vision\""}
867
  pyarrow = ">=8.0.0"
868
+ pyarrow-hotfix = "*"
869
  pyyaml = ">=5.1"
870
  requests = ">=2.19.0"
871
  tqdm = ">=4.62.1"
 
1188
 
1189
  [[package]]
1190
  name = "fsspec"
1191
+ version = "2023.10.0"
1192
  description = "File-system specification"
1193
  optional = false
1194
  python-versions = ">=3.8"
1195
  files = [
1196
+ {file = "fsspec-2023.10.0-py3-none-any.whl", hash = "sha256:346a8f024efeb749d2a5fca7ba8854474b1ff9af7c3faaf636a4548781136529"},
1197
+ {file = "fsspec-2023.10.0.tar.gz", hash = "sha256:330c66757591df346ad3091a53bd907e15348c2ba17d63fd54f5c39c4457d2a5"},
1198
  ]
1199
 
1200
  [package.dependencies]
 
3010
  [package.dependencies]
3011
  numpy = ">=1.16.6"
3012
 
3013
+ [[package]]
3014
+ name = "pyarrow-hotfix"
3015
+ version = "0.6"
3016
+ description = ""
3017
+ optional = false
3018
+ python-versions = ">=3.5"
3019
+ files = [
3020
+ {file = "pyarrow_hotfix-0.6-py3-none-any.whl", hash = "sha256:dcc9ae2d220dff0083be6a9aa8e0cdee5182ad358d4931fce825c545e5c89178"},
3021
+ {file = "pyarrow_hotfix-0.6.tar.gz", hash = "sha256:79d3e030f7ff890d408a100ac16d6f00b14d44a502d7897cd9fc3e3a534e9945"},
3022
+ ]
3023
+
3024
  [[package]]
3025
  name = "pyasn1"
3026
  version = "0.5.1"
requirements.txt CHANGED
@@ -22,7 +22,7 @@ codecarbon==2.2.3
22
  colorlog==6.8.0
23
  contourpy==1.2.0
24
  cycler==0.12.1
25
- datasets==2.14.4
26
  diffusers==0.21.4
27
  dill==0.3.7
28
  docstring-parser==0.15
@@ -33,7 +33,7 @@ ffmpy==0.3.1
33
  filelock==3.13.1
34
  fonttools==4.47.0
35
  frozenlist==1.4.1
36
- fsspec==2023.12.2
37
  fuzzywuzzy==0.18.0
38
  google-auth==2.25.2
39
  google-auth-oauthlib==1.2.0
@@ -87,6 +87,7 @@ psutil==5.9.7
87
  py-cpuinfo==9.0.0
88
  py7zr==0.20.6
89
  pyarrow==14.0.2
 
90
  pyasn1==0.5.1
91
  pyasn1-modules==0.3.0
92
  pybcj==1.0.2
 
22
  colorlog==6.8.0
23
  contourpy==1.2.0
24
  cycler==0.12.1
25
+ datasets==2.14.7
26
  diffusers==0.21.4
27
  dill==0.3.7
28
  docstring-parser==0.15
 
33
  filelock==3.13.1
34
  fonttools==4.47.0
35
  frozenlist==1.4.1
36
+ fsspec==2023.10.0
37
  fuzzywuzzy==0.18.0
38
  google-auth==2.25.2
39
  google-auth-oauthlib==1.2.0
 
87
  py-cpuinfo==9.0.0
88
  py7zr==0.20.6
89
  pyarrow==14.0.2
90
+ pyarrow-hotfix==0.6
91
  pyasn1==0.5.1
92
  pyasn1-modules==0.3.0
93
  pybcj==1.0.2