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
|
.env
|
||||||
booru.db
|
booru.db
|
||||||
@@ -3,6 +3,6 @@ WORKDIR /app
|
|||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN mkdir -p Pictures
|
VOLUME ["/app/Pictures", "/app/booru.db"]
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
CMD ["python", "Slideshow.py"]
|
CMD ["python", "Slideshow.py"]
|
||||||
|
|||||||
0
Pictures/.gitkeep
Normal file
0
Pictures/.gitkeep
Normal file
Reference in New Issue
Block a user