track Pictures dir via .gitkeep, declare volumes in Dockerfile

This commit is contained in:
Johannes
2026-05-06 02:32:03 +02:00
parent 00e8f69274
commit 6213b34e8b
3 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@@ -1,3 +1,4 @@
Pictures/
Pictures/*
!Pictures/.gitkeep
.env
booru.db

View File

@@ -3,6 +3,6 @@ WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p Pictures
VOLUME ["/app/Pictures", "/app/booru.db"]
EXPOSE 5000
CMD ["python", "Slideshow.py"]

0
Pictures/.gitkeep Normal file
View File