From fff266e1cecd2569cef03bab98c6ee8a9c07d717 Mon Sep 17 00:00:00 2001 From: Raelon Masters Date: Tue, 7 Apr 2020 09:14:08 -0400 Subject: [PATCH] First try of docker --- Dockerfile | 14 ++++++++++++++ requirements.txt | 4 +--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0e2d480 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM archlinux:latest +RUN pacman -Syy +RUN pacman -Syu +RUN pacman -S python python-pip git +RUN mkdir -p /srv/Books && mkdir -p /srv/http && \ + chown -R http.http /srv/Books && chown -R http.http /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 +EXPOSE 80 22 8000 diff --git a/requirements.txt b/requirements.txt index d856ea0..6d891d8 100755 --- a/requirements.txt +++ b/requirements.txt @@ -12,12 +12,10 @@ pre-commit isort django toml -:close - -q django-debug-toolbar psycopg2-binary prompt_toolkit psutil pyfiglet psycopg2 +gunicorn