From 7d031b597450b9df27953ae7bc74e88a0264389f Mon Sep 17 00:00:00 2001 From: Raelon Masters Date: Tue, 7 Apr 2020 10:12:50 -0400 Subject: [PATCH] Updated Dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e97f9eb..65c4f6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,11 +3,12 @@ RUN pacman -Syy 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 && systemctl start postgresql +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 && \ chown -R http.pyshelf /srv/Books && chown -R http.pyshelf /srv/http -RUN systemctl enable sshd && systemctl start sshd +RUN systemctl enable sshd VOLUME ['/srv/Books','/srv/http'] ENV nginx_conf /etc/nginx/nginx.conf ENV PYTHONUNBUFFERED 1