Skip to content

Commit ffd90f2

Browse files
committed
run all dependencies and increase nsjail memory
1 parent 0b16e2c commit ffd90f2

File tree

4 files changed

+263
-4
lines changed

4 files changed

+263
-4
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ RUN curl -sSf https://rye.astral.sh/get | RYE_INSTALL_OPTION="--yes" RYE_TOOLCHA
3131

3232
COPY --chown=app requirements.lock pyproject.toml .python-version README.md ./
3333

34-
RUN /bin/bash -c 'source $RYE_HOME/env && UV_NO_CACHE=1 rye sync' && \
34+
RUN /bin/bash -c 'source $RYE_HOME/env && UV_NO_CACHE=1 rye sync --features=full' && \
3535
curl https://semgrep.dev/c/r/bash -s -o /tmp/bash && \
3636
curl https://semgrep.dev/c/r/python.lang.security -s -o /tmp/python.lang.security
37+
RUN rye run python -m spacy download en_core_web_lg
3738

3839
COPY --chown=app server ./server
3940
COPY --from=frontend-builder --chown=app /app/dist ./playground/dist

requirements-dev.lock

Lines changed: 130 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# last locked with the following flags:
55
# pre: false
6-
# features: []
6+
# features: ["full"]
77
# all-features: false
88
# with-sources: false
99
# generate-hashes: false
@@ -24,6 +24,8 @@ attrs==23.2.0
2424
# via jsonschema
2525
# via referencing
2626
# via semgrep
27+
blis==0.7.11
28+
# via thinc
2729
boltons==21.0.0
2830
# via face
2931
# via glom
@@ -33,6 +35,10 @@ bracex==2.4
3335
cachetools==5.5.0
3436
# via asyncache
3537
# via invariant-server
38+
catalogue==2.0.10
39+
# via spacy
40+
# via srsly
41+
# via thinc
3642
certifi==2024.7.4
3743
# via httpcore
3844
# via httpx
@@ -46,8 +52,17 @@ click==8.1.7
4652
# via uvicorn
4753
click-option-group==0.5.6
4854
# via semgrep
55+
cloudpathlib==0.19.0
56+
# via weasel
4957
colorama==0.4.6
5058
# via semgrep
59+
confection==0.1.5
60+
# via thinc
61+
# via weasel
62+
cymem==2.0.8
63+
# via preshed
64+
# via spacy
65+
# via thinc
5166
defusedxml==0.7.1
5267
# via semgrep
5368
dnspython==2.6.1
@@ -65,6 +80,14 @@ fastapi-cli==0.0.4
6580
# via fastapi
6681
fastapi-utils==0.7.0
6782
# via invariant-server
83+
filelock==3.15.4
84+
# via huggingface-hub
85+
# via tldextract
86+
# via torch
87+
# via transformers
88+
fsspec==2024.6.1
89+
# via huggingface-hub
90+
# via torch
6891
glom==22.1.0
6992
# via semgrep
7093
h11==0.14.0
@@ -76,53 +99,96 @@ httptools==0.6.1
7699
# via uvicorn
77100
httpx==0.27.0
78101
# via fastapi
102+
huggingface-hub==0.24.6
103+
# via invariant-server
104+
# via tokenizers
105+
# via transformers
79106
idna==3.7
80107
# via anyio
81108
# via email-validator
82109
# via httpx
83110
# via requests
111+
# via tldextract
84112
iniconfig==2.0.0
85113
# via pytest
86114
invariant @ git+https://github.com/invariantlabs-ai/invariant.git@0a5489d3e647858a78f62a8f5abef2b79374ab0b
87115
# via invariant-server
88116
jinja2==3.1.4
89117
# via fastapi
118+
# via spacy
119+
# via torch
90120
jsonschema==4.23.0
91121
# via semgrep
92122
jsonschema-specifications==2023.12.1
93123
# via jsonschema
124+
langcodes==3.4.0
125+
# via spacy
126+
language-data==1.2.0
127+
# via langcodes
94128
lark==1.1.9
95129
# via invariant
130+
marisa-trie==1.2.0
131+
# via language-data
96132
markdown-it-py==3.0.0
97133
# via rich
98134
markupsafe==2.1.5
99135
# via jinja2
100136
mdurl==0.1.2
101137
# via markdown-it-py
138+
mpmath==1.3.0
139+
# via sympy
140+
murmurhash==1.0.10
141+
# via preshed
142+
# via spacy
143+
# via thinc
102144
mypy-extensions==1.0.0
103145
# via typing-inspect
146+
networkx==3.3
147+
# via torch
148+
numpy==1.26.4
149+
# via blis
150+
# via invariant-server
151+
# via spacy
152+
# via thinc
153+
# via transformers
104154
orjson==3.10.6
105155
# via fastapi
106156
packaging==24.1
157+
# via huggingface-hub
107158
# via pytest
108159
# via semgrep
160+
# via spacy
161+
# via thinc
162+
# via transformers
163+
# via weasel
109164
peewee==3.17.6
110165
# via semgrep
166+
phonenumbers==8.13.44
167+
# via presidio-analyzer
111168
pip==24.1.2
112169
# via invariant
113170
pluggy==1.5.0
114171
# via pytest
172+
preshed==3.0.9
173+
# via spacy
174+
# via thinc
175+
presidio-analyzer==2.2.355
176+
# via invariant-server
115177
prometheus-client==0.20.0
116178
# via prometheus-fastapi-instrumentator
117179
prometheus-fastapi-instrumentator==7.0.0
118180
# via invariant-server
119181
psutil==5.9.8
120182
# via fastapi-utils
121183
pydantic==2.8.2
184+
# via confection
122185
# via fastapi
123186
# via fastapi-utils
124187
# via invariant
125188
# via pydantic-settings
189+
# via spacy
190+
# via thinc
191+
# via weasel
126192
pydantic-core==2.20.1
127193
# via pydantic
128194
pydantic-settings==2.3.4
@@ -136,12 +202,26 @@ python-dotenv==1.0.1
136202
python-multipart==0.0.9
137203
# via fastapi
138204
pyyaml==6.0.1
205+
# via huggingface-hub
206+
# via presidio-analyzer
207+
# via transformers
139208
# via uvicorn
140209
referencing==0.35.1
141210
# via jsonschema
142211
# via jsonschema-specifications
212+
regex==2024.7.24
213+
# via presidio-analyzer
214+
# via transformers
143215
requests==2.32.3
216+
# via huggingface-hub
217+
# via requests-file
144218
# via semgrep
219+
# via spacy
220+
# via tldextract
221+
# via transformers
222+
# via weasel
223+
requests-file==2.1.0
224+
# via tldextract
145225
rich==13.7.1
146226
# via semgrep
147227
# via typer
@@ -153,28 +233,69 @@ ruamel-yaml==0.17.40
153233
ruamel-yaml-clib==0.2.8
154234
# via ruamel-yaml
155235
ruff==0.5.1
236+
safetensors==0.4.4
237+
# via transformers
156238
semgrep==1.79.0
157239
# via invariant
240+
setuptools==74.1.1
241+
# via marisa-trie
242+
# via spacy
243+
# via thinc
244+
# via torch
158245
shellingham==1.5.4
159246
# via typer
247+
smart-open==7.0.4
248+
# via weasel
160249
sniffio==1.3.1
161250
# via anyio
162251
# via httpx
252+
spacy==3.7.6
253+
# via invariant-server
254+
# via presidio-analyzer
255+
spacy-legacy==3.0.12
256+
# via spacy
257+
spacy-loggers==1.0.5
258+
# via spacy
259+
srsly==2.4.8
260+
# via confection
261+
# via spacy
262+
# via thinc
263+
# via weasel
163264
starlette==0.37.2
164265
# via fastapi
165266
# via prometheus-fastapi-instrumentator
267+
sympy==1.13.2
268+
# via torch
166269
termcolor==2.4.0
167270
# via invariant
271+
thinc==8.2.5
272+
# via spacy
273+
tldextract==5.1.2
274+
# via presidio-analyzer
275+
tokenizers==0.19.1
276+
# via transformers
168277
tomli==2.0.1
169278
# via semgrep
279+
torch==2.4.0
280+
# via invariant-server
281+
tqdm==4.66.5
282+
# via huggingface-hub
283+
# via spacy
284+
# via transformers
285+
transformers==4.44.2
286+
# via invariant-server
170287
typer==0.12.3
171288
# via fastapi-cli
289+
# via spacy
290+
# via weasel
172291
typing-extensions==4.12.2
173292
# via aiosqlite
174293
# via fastapi
294+
# via huggingface-hub
175295
# via pydantic
176296
# via pydantic-core
177297
# via semgrep
298+
# via torch
178299
# via typer
179300
# via typing-inspect
180301
typing-inspect==0.9.0
@@ -188,9 +309,17 @@ uvicorn==0.30.1
188309
# via invariant-server
189310
uvloop==0.19.0
190311
# via uvicorn
312+
wasabi==1.1.3
313+
# via spacy
314+
# via thinc
315+
# via weasel
191316
watchfiles==0.22.0
192317
# via uvicorn
193318
wcmatch==8.5.2
194319
# via semgrep
320+
weasel==0.4.1
321+
# via spacy
195322
websockets==12.0
196323
# via uvicorn
324+
wrapt==1.16.0
325+
# via smart-open

0 commit comments

Comments
 (0)