mirror of
https://github.com/csd4ni3l/debt-by-ai.git
synced 2026-01-01 12:33:44 +01:00
Add docker support and automatic docker build
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM debian:12-slim AS build
|
||||
RUN apt-get update && \
|
||||
apt-get install --no-install-suggests --no-install-recommends --yes python3-venv gcc libpython3-dev && \
|
||||
python3 -m venv /venv && \
|
||||
/venv/bin/pip install --upgrade pip setuptools wheel
|
||||
|
||||
FROM build AS build-venv
|
||||
COPY requirements.txt /requirements.txt
|
||||
RUN /venv/bin/pip install --disable-pip-version-check -r /requirements.txt
|
||||
|
||||
FROM gcr.io/distroless/python3-debian12
|
||||
COPY --from=build-venv /venv /venv
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
ENTRYPOINT ["/venv/bin/python3", "app.py"]
|
||||
Reference in New Issue
Block a user