mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Updated Dockerfile
This commit is contained in:
2
Dockerfile
vendored
2
Dockerfile
vendored
@@ -4,12 +4,12 @@ RUN pacman -Syu --noconfirm
|
|||||||
RUN pacman -S --noconfirm python python-pip git openssh postgresql sudo
|
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 sudo -u postgres initdb --locale=en_US.UTF-8 -E UTF8 -D /var/lib/postgres/data
|
||||||
RUN systemctl enable 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 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 -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
|
chmod e+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
|
||||||
VOLUME ['/srv/Books','/srv/http']
|
VOLUME ['/srv/Books','/srv/http']
|
||||||
ENV nginx_conf /etc/nginx/nginx.conf
|
ENV nginx_conf /etc/nginx/nginx.conf
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
|||||||
Reference in New Issue
Block a user