Public | Automated Build

Last pushed: a year ago
Short Description
Flask + Flask Admin + pyodbc
Full Description


This repository have a Dockerfile that extends the docker image jfloff/alpine-python:2.7-slim, this upgrade supports the flask admin framework with pyodbc.

To connect your flask project in Microsoft SQL database use the syntax:

app.config['SQLALCHEMY_DATABASE_URI'] = 'mssql+pyodbc://DB_USER:DB_PASS@DB_ADDRESS:DB_PORT/DATABASE_NAME?driver=/usr/lib/'

To run your application:

docker run --rm -ti -v $(pwd):/app -p 80:5000 milanez/docker-flask-pyodbc /app/
Docker Pull Command