diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-13 09:05:08 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-13 09:05:11 +0500 |
| commit | 47ee665e2f4b90294c84ec8f898b0c9339530ea1 (patch) | |
| tree | 812b08a643d765344dcbe6dd57f53daf557c87e7 /Dockerfile | |
| parent | consistent prelude.mk (diff) | |
| download | void-47ee665e2f4b90294c84ec8f898b0c9339530ea1.tar.gz void-47ee665e2f4b90294c84ec8f898b0c9339530ea1.zip | |
ditch .dockerignore
Explicit COPY instructions are better IMO.
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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: |
