Spaces:
Build error
Build error
FROM python:3.8.10 | |
EXPOSE 7860 | |
WORKDIR / | |
COPY requirements.txt ./ | |
RUN pip3 install -r requirements.txt | |
RUN curl https://packages.microsoft.com/keys/microsoft.asc | tee /etc/apt/trusted.gpg.d/microsoft.asc | |
RUN curl https://packages.microsoft.com/config/debian/10/prod.list | tee /etc/apt/sources.list.d/mssql-release.list | |
RUN apt-get update | |
RUN ACCEPT_EULA=Y apt-get install -y msodbcsql17 | |
# optional: for bcp and sqlcmd | |
RUN ACCEPT_EULA=Y apt-get install -y mssql-tools | |
RUN echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc | |
COPY .env ./ | |
COPY main.py ./ | |
CMD ["python", "main.py"] | |