mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Updated requirements to use psycopg2-binary
This commit is contained in:
10
Dockerfile
vendored
10
Dockerfile
vendored
@@ -1,14 +1,16 @@
|
|||||||
FROM archlinux:latest
|
FROM archlinux:latest
|
||||||
RUN pacman -Syy
|
RUN pacman -Syy
|
||||||
RUN pacman -Syu
|
RUN pacman -Syu --noconfirm
|
||||||
RUN pacman -S python python-pip git
|
RUN pacman -S --noconfirm python python-pip git openssh
|
||||||
|
RUN useradd pyshelf && chpasswd pyshelf:pyshelf
|
||||||
RUN mkdir -p /srv/Books && mkdir -p /srv/http && \
|
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
|
RUN systemctl enable sshd
|
||||||
VOLUME ['/srv/Books','/srv/http']
|
VOLUME ['/srv/Books','/srv/http']
|
||||||
ENV nginx_conf /etc/nginx/nginx.conf
|
ENV nginx_conf /etc/nginx/nginx.conf
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
WORKDIR /srv/http
|
WORKDIR /srv/http
|
||||||
RUN git clone https://github.com/th3r00t/pyShelf.git /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
|
EXPOSE 80 22 8000
|
||||||
|
RUN gunicorn pyShelf.wsgi 8000:8000
|
||||||
|
|||||||
2
requirements.txt
vendored
2
requirements.txt
vendored
@@ -17,5 +17,5 @@ psycopg2-binary
|
|||||||
prompt_toolkit
|
prompt_toolkit
|
||||||
psutil
|
psutil
|
||||||
pyfiglet
|
pyfiglet
|
||||||
psycopg2
|
psycopg2-binary
|
||||||
gunicorn
|
gunicorn
|
||||||
|
|||||||
Reference in New Issue
Block a user