Skip to content
Permalink
Browse files

Merge branch 'update_dockerfiles' into fix-not-find-codec

  • Loading branch information...
numb3r3 committed Sep 3, 2019
2 parents 167968b + 20793b0 commit 0bbe06c53c1ddc2cb08d34ed6efa50332911b57f
Showing with 19 additions and 15 deletions.
  1. +8 −6 Dockerfiles/alpine.Dockerfile
  2. +6 −5 Dockerfiles/buster.Dockerfile
  3. +5 −4 Dockerfiles/ubuntu18.Dockerfile
@@ -9,16 +9,18 @@ LABEL maintainer="team@gnes.ai" \
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 "{}"' \; && \
@@ -9,17 +9,18 @@ LABEL maintainer="team@gnes.ai" \
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 /
@@ -18,16 +18,17 @@ ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8

ADD . ./

RUN apt-get update && apt-get install --no-install-recommends -y \
build-essential python3-dev python3-pip python3-setuptools libopenblas-dev && \
export LC_ALL=en_US.UTF-8 && export LANG=en_US.UTF-8 && export LC_CTYPE=en_US.UTF-8 && \
ln -s /usr/bin/python3 python && \
pip3 install . --no-cache-dir --compile && \
rm -rf /tmp/* && rm -rf /gnes && \
apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/*

ADD . ./

RUN pip3 install . --no-cache-dir --compile && \
rm -rf /tmp/* && rm -rf /gnes

WORKDIR /

ENTRYPOINT ["gnes"]

0 comments on commit 0bbe06c

Please sign in to comment.
You can’t perform that action at this time.