diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-01-18 01:20:32 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-01-18 01:20:32 +0000 |
| commit | 095494f96f00b33dc9e956b094105c49b5bc558b (patch) | |
| tree | 017cbacda779f691ac0e38fca83e86e25864b0d9 /Dockerfile | |
| parent | 6f230ee4b27445a4d487b9166660dbafaf2f7912 (diff) | |
| download | cheatdb-095494f96f00b33dc9e956b094105c49b5bc558b.tar.xz | |
Improve Docker configurations
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 |
