Updated Dockerfile to build to my dockerhub

This commit is contained in:
Raelon Masters
2020-04-07 11:54:30 -04:00
parent e8cbbce4d7
commit 10504825b3

8
Dockerfile vendored
View File

@@ -1,7 +1,7 @@
FROM archlinux:latest
RUN pacman -Syy
RUN pacman -Syu --noconfirm
RUN pacman -S --noconfirm python python-pip git openssh postgresql sudo
RUN pacman -S --noconfirm python python-pip git openssh postgresql sudo base-devel
RUN sudo -u postgres initdb --locale=en_US.UTF-8 -E UTF8 -D /var/lib/postgres/data
RUN systemctl enable postgresql
RUN useradd pyshelf && chpasswd pyshelf:pyshelf
@@ -13,13 +13,13 @@ RUN mkdir -p /srv/Books && \
chown http.pyshelf /srv/http && \
chown postgres /srv/logs/pgsql.log
RUN systemctl enable sshd
RUN sudo -u postgres pg_ctl -D /var/lib/postgres/data -l /srv/logs/pgsql.log start
# RUN sudo -u postgres pg_ctl -D /var/lib/postgres/data -l /srv/logs/pgsql.log start
VOLUME ['/srv/Books','/srv/http']
ENV nginx_conf /etc/nginx/nginx.conf
# ENV nginx_conf /etc/nginx/nginx.conf
ENV PYTHONUNBUFFERED 1
WORKDIR /srv/http
RUN git clone https://github.com/th3r00t/pyShelf.git /srv/http && \
git checkout 0.5.0--docker && pip install -r requirements.txt
RUN sudo -u postgres psql -f create_db.sql
EXPOSE 80 22 8000
RUN gunicorn pyShelf.wsgi 8000:8000
# RUN gunicorn pyShelf.wsgi 8000:8000