-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker file base para o spacy no alpine
- Loading branch information
1 parent
e166256
commit 49e755e
Showing
1 changed file
with
22 additions
and
0 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 |
---|---|---|
@@ -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 |