include vader lexicon in the worker for nltk

This commit is contained in:
Ruben Fiszel
2022-08-06 12:27:58 +02:00
parent da630b5add
commit 370b26c964
3 changed files with 11 additions and 2 deletions
+1
View File
@@ -88,6 +88,7 @@ RUN wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VER
&& make -j 4 && make install
RUN /usr/local/bin/python3 -m pip install pip-tools
RUN mkdir -p /nsjail_data/python && HOME=/nsjail_data/python /usr/local/bin/python3 -m nltk.downloader vader_lexicon
COPY --from=builder /windmill/target/release/windmill ${APP}/windmill
+2 -2
View File
@@ -343,8 +343,8 @@
</nav>
<div
class="bg-white antialiased text-gray-900 {isCollapsed
? 'pl-8'
: 'pl-36'} flex h-full max-w-screen flex-col items-center"
? 'pl-10'
: 'pl-36 ml-2'} flex h-full max-w-screen flex-col items-center"
>
<slot />
</div>
+8
View File
@@ -58,6 +58,14 @@ mount {
options: "size=500000000"
}
mount {
src: "/nsjail_data/python/nltk_data"
dst: "/tmp/nltk_data"
is_bind: true
rw: false
mandatory: false
}
mount {
src: "{JOB_DIR}/inner.py"
dst: "/tmp/inner.py"