Public | Automated Build

Last pushed: 3 months ago
Short Description
Flask + Flask Admin + pyodbc
Full Description

docker-flask-pyodbc

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/libtdsodbc.so.0'

To run your application:

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

Comments (0)