Updated Dockerfile

This commit is contained in:
Raelon Masters
2020-04-07 10:46:17 -04:00
parent 63453d383f
commit fa1e421a90

2
Dockerfile vendored
View File

@@ -6,7 +6,7 @@ RUN sudo -u postgres initdb --locale=en_US.UTF-8 -E UTF8 -D /var/lib/postgres/da
RUN systemctl enable postgresql
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 && \
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