aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-01-18 01:20:32 +0000
committerrubenwardy <rw@rubenwardy.com>2020-01-18 01:20:32 +0000
commit095494f96f00b33dc9e956b094105c49b5bc558b (patch)
tree017cbacda779f691ac0e38fca83e86e25864b0d9 /Dockerfile
parent6f230ee4b27445a4d487b9166660dbafaf2f7912 (diff)
downloadcheatdb-095494f96f00b33dc9e956b094105c49b5bc558b.tar.xz
Improve Docker configurations
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index c88d0a3..00f683c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,15 +5,18 @@ RUN groupadd -g 5123 cdb && \
WORKDIR /home/cdb
+RUN mkdir /var/cdb
+RUN chown -R cdb:cdb /var/cdb
+
COPY requirements.txt requirements.txt
-RUN pip install -r ./requirements.txt
+RUN pip install -r requirements.txt
RUN pip install gunicorn
COPY utils utils
-COPY config.cfg ./config.cfg
+COPY config.cfg config.cfg
COPY migrations migrations
COPY app app
-RUN mkdir /home/cdb/app/public/uploads/
-RUN chown cdb:cdb /home/cdb -R
+RUN chown -R cdb:cdb /home/cdb
+
USER cdb