mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
First try of docker
This commit is contained in:
14
Dockerfile
vendored
Normal file
14
Dockerfile
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
FROM archlinux:latest
|
||||||
|
RUN pacman -Syy
|
||||||
|
RUN pacman -Syu
|
||||||
|
RUN pacman -S python python-pip git
|
||||||
|
RUN mkdir -p /srv/Books && mkdir -p /srv/http && \
|
||||||
|
chown -R http.http /srv/Books && chown -R http.http /srv/http
|
||||||
|
RUN systemctl enable sshd
|
||||||
|
VOLUME ['/srv/Books','/srv/http']
|
||||||
|
ENV nginx_conf /etc/nginx/nginx.conf
|
||||||
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
WORKDIR /srv/http
|
||||||
|
RUN git clone https://github.com/th3r00t/pyShelf.git /srv/http && \
|
||||||
|
pip install -r requirements.txt
|
||||||
|
EXPOSE 80 22 8000
|
||||||
4
requirements.txt
vendored
4
requirements.txt
vendored
@@ -12,12 +12,10 @@ pre-commit
|
|||||||
isort
|
isort
|
||||||
django
|
django
|
||||||
toml
|
toml
|
||||||
:close
|
|
||||||
|
|
||||||
q
|
|
||||||
django-debug-toolbar
|
django-debug-toolbar
|
||||||
psycopg2-binary
|
psycopg2-binary
|
||||||
prompt_toolkit
|
prompt_toolkit
|
||||||
psutil
|
psutil
|
||||||
pyfiglet
|
pyfiglet
|
||||||
psycopg2
|
psycopg2
|
||||||
|
gunicorn
|
||||||
|
|||||||
Reference in New Issue
Block a user