From 47ee665e2f4b90294c84ec8f898b0c9339530ea1 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 13 Oct 2026 09:05:08 +0500 Subject: ditch .dockerignore Explicit COPY instructions are better IMO. --- .dockerignore | 5 ----- Dockerfile | 7 +++++-- 2 files changed, 5 insertions(+), 7 deletions(-) delete mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index d5aa556..0000000 --- a/.dockerignore +++ /dev/null @@ -1,5 +0,0 @@ -* - -!html/ -!requirements.txt -!src/ diff --git a/Dockerfile b/Dockerfile index af3cf63..c8dae6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,14 @@ FROM python:3.14-alpine RUN mkdir -p /var/lib/void -COPY [".", "/opt/void/"] -WORKDIR /opt/void +WORKDIR /app +COPY ["requirements.txt", "/app/"] RUN pip install -q -r requirements.txt +COPY ["html/", "/app/html/"] +COPY ["src/", "/app/src/"] + # I don't know why, but in Docker, simple print() statements show nothing: # https://stackoverflow.com/q/29663459 # Fixed by adding the -u flag: -- cgit v1.3