-
Notifications
You must be signed in to change notification settings - Fork 38
/
Dockerfile
26 lines (20 loc) · 840 Bytes
/
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
# Use the python:3.12-slim-bookworm base image
FROM python:3.12-slim-bookworm
# Install prerequisites for SQL Server tools
RUN apt-get update && \
apt-get install -y gnupg2 curl lsb-release && \
curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg && \
curl https://packages.microsoft.com/config/debian/$(lsb_release -rs)/prod.list > /etc/apt/sources.list.d/mssql-release.list && \
apt-get update
# Install PostgreSQL client
RUN apt-get install -y postgresql-client
RUN apt-get install -y mariadb-client
RUN ACCEPT_EULA=Y apt-get install -y mssql-tools18 msodbcsql18
ENV PATH="${PATH}:/opt/mssql-tools18/bin"
# Clean up
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . .
RUN pip install . .[mssql]
ENTRYPOINT [ "pynonymizer" ]