This repository has been archived by the owner on Feb 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'update_dockerfiles' into fix-not-find-codec
- Loading branch information
Showing
3 changed files
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,16 +9,18 @@ LABEL maintainer="[email protected]" \ | |
org.label-schema.build-date=$BUILD_DATE \ | ||
org.label-schema.name="GNES is Generic Nerual Elastic Search" | ||
|
||
WORKDIR /gnes/ | ||
|
||
ADD . ./ | ||
|
||
RUN apk add --no-cache \ | ||
--virtual=.build-dependencies \ | ||
build-base g++ gfortran file binutils zeromq-dev \ | ||
musl-dev python3-dev py-pgen cython openblas-dev && \ | ||
apk add --no-cache libstdc++ openblas libzmq && \ | ||
ln -s locale.h /usr/include/xlocale.h && \ | ||
apk add --no-cache libstdc++ openblas libzmq | ||
|
||
|
||
WORKDIR /gnes/ | ||
|
||
ADD . ./ | ||
|
||
RUN ln -s locale.h /usr/include/xlocale.h && \ | ||
pip install . --no-cache-dir --compile && \ | ||
find /usr/lib/python3.7/ -name 'tests' -exec rm -r '{}' + && \ | ||
find /usr/lib/python3.7/site-packages/ -name '*.so' -print -exec sh -c 'file "{}" | grep -q "not stripped" && strip -s "{}"' \; && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,17 +9,18 @@ LABEL maintainer="[email protected]" \ | |
org.label-schema.build-date=$BUILD_DATE \ | ||
org.label-schema.name="GNES is Generic Nerual Elastic Search" | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
build-essential \ | ||
python3-dev libopenblas-dev && \ | ||
apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /gnes/ | ||
|
||
ADD . ./ | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
build-essential \ | ||
python3-dev libopenblas-dev && \ | ||
ln -s locale.h /usr/include/xlocale.h && \ | ||
RUN ln -s locale.h /usr/include/xlocale.h && \ | ||
pip install . --no-cache-dir --compile && \ | ||
rm -rf /tmp/* && rm -rf /gnes && \ | ||
apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* && \ | ||
rm /usr/include/xlocale.h | ||
|
||
WORKDIR / | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters