mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Updated Dockerfile adjusted ownership for logs directory
This commit is contained in:
2
Dockerfile
vendored
2
Dockerfile
vendored
@@ -7,7 +7,7 @@ RUN systemctl enable postgresql
|
|||||||
RUN useradd pyshelf && chpasswd pyshelf:pyshelf
|
RUN useradd pyshelf && chpasswd pyshelf:pyshelf
|
||||||
RUN mkdir -p /srv/Books && mkdir -p /srv/http && mkdir -p /srv/logs/ \
|
RUN mkdir -p /srv/Books && mkdir -p /srv/http && mkdir -p /srv/logs/ \
|
||||||
chown http.pyshelf /srv/Books && chown http.pyshelf /srv/http && \
|
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 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']
|
VOLUME ['/srv/Books','/srv/http']
|
||||||
|
|||||||
Reference in New Issue
Block a user