track Pictures dir via .gitkeep, declare volumes in Dockerfile
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
Pictures/
|
||||
Pictures/*
|
||||
!Pictures/.gitkeep
|
||||
.env
|
||||
booru.db
|
||||
@@ -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
0
Pictures/.gitkeep
Normal file
Reference in New Issue
Block a user