I'm trying to dockerize an application that has previously deployed on windows and I was wondering what python image I should use in order to resolve an issue with installing pyodbc and pythonnet. My requirements:
pyodbc==4.0.25 pythonnet==2.4.0
the pyodbc error I'm getting states:
src/pyodbc.h:56:10: fatal error: sql.h: no such file or directory
the pythonnet error: No matching distribution found for pythonnet==2.4.0
My Dockerfile looks like this:
FROM python:3.6
WORKDIR /opt
# create a virtual environment and add it to PATH so that it is applied for all subsequent run and cmd calls
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
COPY requirements.txt
COPY src ./src
RUN pip install --no-cache-dir -r requirements.txt
cmd python src/automation/interface/app.py
I tried pulling a windows-server-core image but got an error message saying the image could not be found, and I haven't been able to find any other functioning windows-based image. I need to resolve this because my application builds and imports a c# app, and I need pythonnet in order to do that. Any help would be much appreciated.