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.
revert(docker): revert alpine docker to reduce size
- Loading branch information
hanhxiao
committed
Sep 12, 2019
1 parent
9c1a606
commit cc72cf2
Showing
2 changed files
with
12 additions
and
10 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,25 +9,24 @@ LABEL maintainer="[email protected]" \ | |
org.label-schema.build-date=$BUILD_DATE \ | ||
org.label-schema.name="GNES is Generic Nerual Elastic Search" | ||
|
||
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 | ||
|
||
|
||
WORKDIR /gnes/ | ||
|
||
ADD . ./ | ||
|
||
RUN ln -s locale.h /usr/include/xlocale.h && \ | ||
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 && \ | ||
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 "{}"' \; && \ | ||
rm /usr/include/xlocale.h && \ | ||
rm -rf /tmp/* && \ | ||
rm -rf /gnes && \ | ||
apk del .build-dependencies | ||
apk del .build-dependencies && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
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