Created
October 17, 2018 05:25
-
-
Save hit0ri/c9a03412779e18ab7929e578df93032a to your computer and use it in GitHub Desktop.
find3 docker compose
This file contains hidden or 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
version: "3" | |
services: | |
ai: | |
build: | |
context: . | |
dockerfile: Dockerfile-ai |
This file contains hidden or 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
FROM python:alpine | |
RUN apk add --no-cache lapack libstdc++ freetype \ | |
&& apk add --no-cache --virtual .build build-base gfortran freetype-dev lapack-dev | |
WORKDIR /usr/src/app | |
COPY find3/server/ai . | |
RUN pip3 install --no-cache-dir scipy \ | |
&& pip3 install --no-cache-dir -r requirements.txt \ | |
&& apk del .build | |
WORKDIR /usr/src/app/src | |
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8 FLASK_APP=server.py FLASK_DEBUG=0 | |
CMD [ "flask", "run", "--port", "8002" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment