poc
This commit is contained in:
parent
8eb2d71e37
commit
e8b0e787ec
2 changed files with 33 additions and 0 deletions
28
Dockerfile
Normal file
28
Dockerfile
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
FROM python:3.12-slim
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y \
|
||||||
|
curl \
|
||||||
|
gnupg \
|
||||||
|
ca-certificates \
|
||||||
|
unixodbc \
|
||||||
|
unixodbc-dev && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN mkdir -p /usr/share/keyrings && \
|
||||||
|
curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | \
|
||||||
|
gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg
|
||||||
|
|
||||||
|
RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft-prod.gpg] https://packages.microsoft.com/debian/12/prod bookworm main" \
|
||||||
|
> /etc/apt/sources.list.d/microsoft-prod.list
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
ACCEPT_EULA=Y apt-get install -y msodbcsql18
|
||||||
|
|
||||||
|
RUN pip install --no-cache-dir pyodbc
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
CMD ["python", "main.py"]
|
||||||
5
podman-compose.yml
Normal file
5
podman-compose.yml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
services:
|
||||||
|
cteward:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "${APP_PORT}:5000"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue