diff --git a/.dockerignore b/.dockerignore index e764ba6..f7104aa 100644 --- a/.dockerignore +++ b/.dockerignore @@ -13,4 +13,9 @@ env/ # IDE/Editor .vscode/ -.idea/ \ No newline at end of file +.idea/ + +# Build artifacts +dockerfile +.dockerignore +*.sample \ No newline at end of file diff --git a/dockerfile b/dockerfile index 1f296ff..d5aa093 100644 --- a/dockerfile +++ b/dockerfile @@ -1,16 +1,6 @@ # Builder stage FROM python:3.11-slim-bookworm as builder -RUN apt-get update && apt-get install -y --no-install-recommends \ - libglib2.0-0 \ - libsm6 \ - libxrender1 \ - libxext6 \ - libgomp1 \ - libgl1 \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* - WORKDIR /app COPY requirements.txt . @@ -32,7 +22,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ WORKDIR /app COPY --from=builder /install /usr/local -COPY . . +COPY app.py . +COPY gunicorn.conf.py . +COPY run.sh . +COPY VERSION . +COPY backend/ backend/ +COPY lib/ lib/ +COPY static/ static/ +COPY templates/ templates/ + RUN chmod +x run.sh