Skip to content

Instantly share code, notes, and snippets.

@hit0ri
Created October 17, 2018 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hit0ri/c9a03412779e18ab7929e578df93032a to your computer and use it in GitHub Desktop.
Save hit0ri/c9a03412779e18ab7929e578df93032a to your computer and use it in GitHub Desktop.
find3 docker compose
version: "3"
services:
ai:
build:
context: .
dockerfile: Dockerfile-ai
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