Skip to content

Instantly share code, notes, and snippets.

View BrandonDavidDee's full-sized avatar

Brandon David Demonbreun BrandonDavidDee

View GitHub Profile
@BrandonDavidDee
BrandonDavidDee / Dockerfile
Created March 14, 2022 23:20
FastApi Python Docker file with pyodbc & ODBC Driver for SQL Server
# At time of writing the python parent image uses Debian 11
FROM tiangolo/uvicorn-gunicorn:python3.8-slim
COPY requirements.txt .
# Setup dependencies for pyodbc and weasyprint (cairo and pango libs)
RUN \
apt-get update && \
apt-get install -y curl build-essential unixodbc-dev g++ apt-transport-https libcairo2 libpango-1.0-0 libpangocairo-1.0-0 && \
# ADD THE KEY FROM MICROSOFT