Updated Dockerfile

This commit is contained in:
Raelon Masters
2020-04-07 10:37:43 -04:00
parent f3040b4bfb
commit 61e892f650

2
Dockerfile vendored
View File

@@ -4,12 +4,12 @@ RUN pacman -Syu --noconfirm
RUN pacman -S --noconfirm python python-pip git openssh postgresql sudo
RUN sudo -u postgres initdb --locale=en_US.UTF-8 -E UTF8 -D /var/lib/postgres/data
RUN systemctl enable postgresql
RUN sudo -u postgres pg_ctl -D /var/lib/postgres/data -l /srv/http/pgsql.log start
RUN useradd pyshelf && chpasswd pyshelf:pyshelf
RUN mkdir -p /srv/Books && mkdir -p /srv/http && mkdir -p /srv/logs/ \
chown -R http.pyshelf /srv/Books && chown -R http.pyshelf /srv/http && \
chmod e+rw /srv/logs
RUN systemctl enable sshd
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 PYTHONUNBUFFERED 1