diff options
| author | rubenwardy <rw@rubenwardy.com> | 2019-01-09 21:58:11 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2019-01-09 21:58:11 +0000 |
| commit | a45df0e1734e441348c96b8513dd3c39132d4b18 (patch) | |
| tree | d81762819a993727b17a80355354e2f66bf1e8ab /Dockerfile | |
| parent | 0db49efe4a8cc32d3060a00a557d993111693b8d (diff) | |
| download | cheatdb-a45df0e1734e441348c96b8513dd3c39132d4b18.tar.xz | |
Add Docker support
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..21f35ed --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM python:3.7 + +WORKDIR /home/cdb + +COPY requirements.txt requirements.txt +RUN pip install -r ./requirements.txt +RUN pip install gunicorn +RUN pip install psycopg2 + +COPY runprodguni.sh ./ +RUN chmod +x runprodguni.sh + +COPY setup.py ./setup.py +COPY app app +COPY migrations migrations +COPY config.prod.cfg ./config.prod.cfg + +EXPOSE 5123 +ENTRYPOINT ["./runprodguni.sh"] |
