Skip to content

Commit

Permalink
docker file base para o spacy no alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
luizanisio committed Aug 25, 2018
1 parent e166256 commit 49e755e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM python:3.6.5-alpine3.7

#exemplo base para criar uma imagem com spacy
#para servir modelos em python ou treinamentos de modelos
#para gerar a imagem base: docker build -t spacybase .

RUN apk add --no-cache tzdata
ENV TZ=America/Sao_Paulo

WORKDIR /usr/src/app

RUN apk update && \
apk upgrade && \
apk add --no-cache libstdc++ && \
apk add --no-cache --virtual=build_deps g++ gfortran && \
ln -s /usr/include/locale.h /usr/include/xlocale.h && \
pip3 install --upgrade pip setuptools && \
pip3 install --no-cache-dir spacy && \
pip3 install --no-cache-dir flask && \
python -m spacy download pt &&\
rm /usr/include/xlocale.h && \
apk del build_deps

0 comments on commit 49e755e

Please sign in to comment.