Spaces:
Runtime error
Runtime error
grosenthal
commited on
Commit
•
7d8181f
1
Parent(s):
d7fa13a
ldconfig as root
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -4,6 +4,11 @@
|
|
4 |
FROM python:3.9
|
5 |
|
6 |
WORKDIR /code
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
RUN useradd -m -u 1000 user
|
9 |
USER user
|
@@ -16,11 +21,7 @@ COPY --chown=user ./requirements.txt /code/requirements.txt
|
|
16 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
17 |
|
18 |
COPY --chown=user . .
|
19 |
-
COPY lib/libgnat-4.9.so /usr/lib
|
20 |
-
COPY lib/libgnat-4.9.so.1 /usr/lib
|
21 |
-
COPY lib/libc.so /usr/lib
|
22 |
|
23 |
-
RUN ldconfig
|
24 |
|
25 |
|
26 |
RUN python -c "from cltk.data.fetch import FetchCorpus; corpus_downloader = FetchCorpus(language='lat');corpus_downloader.import_corpus('lat_models_cltk')"
|
|
|
4 |
FROM python:3.9
|
5 |
|
6 |
WORKDIR /code
|
7 |
+
COPY lib/libgnat-4.9.so /usr/lib
|
8 |
+
COPY lib/libgnat-4.9.so.1 /usr/lib
|
9 |
+
COPY lib/libc.so /usr/lib
|
10 |
+
|
11 |
+
RUN ldconfig
|
12 |
|
13 |
RUN useradd -m -u 1000 user
|
14 |
USER user
|
|
|
21 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
22 |
|
23 |
COPY --chown=user . .
|
|
|
|
|
|
|
24 |
|
|
|
25 |
|
26 |
|
27 |
RUN python -c "from cltk.data.fetch import FetchCorpus; corpus_downloader = FetchCorpus(language='lat');corpus_downloader.import_corpus('lat_models_cltk')"
|