-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (23 loc) · 1.13 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM my-temp-python-image:latest
LABEL org.opencontainers.image.source=https://github.com/singularit-de/django-test
LABEL maintainer="singularIT GmbH <[email protected]>"
LABEL org.opencontainers.image.documentation=https://github.com/singularit-de/django-test#readme
ENV DEBIAN_FRONTEND noninteractive
ENV PYTHONUNBUFFERED=0
RUN apt-get update
RUN apt-get install lsb-release -y
RUN apt-get -y install apt-utils
RUN cd /tmp && curl -OL https://dev.mysql.com/get/mysql-apt-config_0.8.29-1_all.deb && dpkg -i mysql-apt-config* && rm -f /tmp/*.deb
RUN apt-get -y update
RUN apt-get install mysql-apt-config
RUN apt-get -y update
# MySQL
RUN apt-get -y install net-tools mysql-client default-libmysqlclient-dev
# MariaDB
RUN apt-get -y install libmariadb-dev libssl-dev
# MSSQL (beta)
RUN curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg
RUN curl https://packages.microsoft.com/config/debian/12/prod.list | tee /etc/apt/sources.list.d/mssql-release.list
RUN apt-get update
RUN ACCEPT_EULA=Y apt-get -y install msodbcsql17 msodbcsql18
RUN apt-get install -y unixodbc-dev