Skip to content

wrwrwr/docker-flask-scipy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-flask-scipy

A small image with fully working SciPy and an infrastructure sufficient for a simple web service.

Includes:

Usage

Add application code and a runit script starting Gunicorn.

A basic derived Dockerfile could look as follows:

FROM wrwrwr/flask-scipy

COPY requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt
COPY . /app
COPY run.sh /etc/service/app/run

The run.sh script needs to start the Gunicorn server:

#!/usr/bin/env bash

cd /app
gunicorn --config /etc/gunicorn/config.py app:app

Possible improvements

  • Strip the base (Debian) image from systemd, docs etc.
  • Or research NumPy on Alpine test errors and reconsider changing the base.
  • Compile ATLAS during build or allow compiling it for a chosen architecture.

About

A small base image for services using SciPy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published