Updated Dockerfile adjusted ownership for logs directory

This commit is contained in:
Raelon Masters
2020-04-07 10:54:29 -04:00
parent 1d52de18f2
commit 8abc54f280

2
Dockerfile vendored
View File

@@ -7,7 +7,7 @@ RUN systemctl enable postgresql
RUN useradd pyshelf && chpasswd pyshelf:pyshelf
RUN mkdir -p /srv/Books && mkdir -p /srv/http && mkdir -p /srv/logs/ \
chown http.pyshelf /srv/Books && chown http.pyshelf /srv/http && \
chmod e+rw /srv/logs
chmod a=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']