aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-11-10 19:17:12 -0500
committerBobby <[email protected]>2023-11-10 19:17:12 -0500
commit9d0bb4593a1ea777184be4b036cdf2136958b775 (patch)
tree17a579399049b054d55715b3a87aa7716ee14b9c
parent854504fce4798cf529b55cd052599952572c400b (diff)
downloadthatcomputerscientist-9d0bb4593a1ea777184be4b036cdf2136958b775.tar.xz
thatcomputerscientist-9d0bb4593a1ea777184be4b036cdf2136958b775.zip
Update Dockerfile
-rw-r--r--Dockerfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index a7c56dd3..45802a52 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,6 +16,12 @@ RUN mkdir -p /shifoo
WORKDIR /shifoo
+# Bind database and images folders as read write.
+# /home/ubuntu/database -> db.sqlite3 :: bind to /database -> db.sqlite3 in container
+# /home/ubuntu/database/images -> images :: bind to /WORKDIR/images in container
+
+VOLUME ["/database", "/shifoo/images"]
+
COPY requirements.txt .
RUN pip install -r requirements.txt