From 47bff56119d0574d63bf695dbfc4783a90e684b9 Mon Sep 17 00:00:00 2001 From: Raelon Masters Date: Tue, 7 Apr 2020 09:48:26 -0400 Subject: [PATCH] Updated requirements to use psycopg2-binary --- Dockerfile | 10 ++++++---- requirements.txt | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0e2d480..482b124 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,16 @@ FROM archlinux:latest RUN pacman -Syy -RUN pacman -Syu -RUN pacman -S python python-pip git +RUN pacman -Syu --noconfirm +RUN pacman -S --noconfirm python python-pip git openssh +RUN useradd pyshelf && chpasswd pyshelf:pyshelf RUN mkdir -p /srv/Books && mkdir -p /srv/http && \ - chown -R http.http /srv/Books && chown -R http.http /srv/http + chown -R http.pyshelf /srv/Books && chown -R http.pyshelf /srv/http RUN systemctl enable sshd VOLUME ['/srv/Books','/srv/http'] ENV nginx_conf /etc/nginx/nginx.conf ENV PYTHONUNBUFFERED 1 WORKDIR /srv/http RUN git clone https://github.com/th3r00t/pyShelf.git /srv/http && \ - pip install -r requirements.txt + git checkout 0.5.0--docker && pip install -r requirements.txt EXPOSE 80 22 8000 +RUN gunicorn pyShelf.wsgi 8000:8000 diff --git a/requirements.txt b/requirements.txt index 6d891d8..005e2df 100755 --- a/requirements.txt +++ b/requirements.txt @@ -17,5 +17,5 @@ psycopg2-binary prompt_toolkit psutil pyfiglet -psycopg2 +psycopg2-binary gunicorn