title: Install ODBC driver in Alpine Linux Docker Container
body: <p>I currently have the following <code>Dockerfile</code> to create my Docker image.</p>
  
  <pre><code>FROM python:3.6.6-alpine3.8
  
  # Add dependencies for Python packages pandas, numpy and pyodbc
  RUN apk add --no-cache curl gcc g++ unixodbc-dev
  RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
  
  # Project files
  ARG PROJECT_DIR=/srv/scripts
  RUN mkdir -p $PROJECT_DIR
  WORKDIR $PROJECT_DIR
  COPY requirements.txt ./
  
  # Install Python dependencies
  RUN pip install --upgrade pip
  RUN pip install -r requirements.txt
  </code></pre>
  
  <p>I would like to include various ODBC drivers in this image so that I can use them to connect to different databases from the Python program running in my container.</p>
  
  <ul>
  <li>The Python program is using <code>Pyodbc</code> to connect to databases.</li>
  <li>The ODBC drivers I need to install are:
  
  <ul>
  <li>PostgreSQL</li>
  <li>MySQL</li>
  <li>Ms SQL Server</li>
  <li>Teradata</li>
  <li>Oracle</li>
  <li>Hive</li>
  <li>Impala</li>
  </ul></li>
  </ul>
  
  <p>I wanted to start with PostgreSQL thinking it would be the easiest one but I could not find any package on the <a href="https://pkgs.alpinelinux.org/packages" rel="noreferrer">Alpine Linux Package manager</a>. Do you have any idea how I should install such a driver?</p>