Initial commit.

This commit is contained in:
Roland 2019-10-09 17:30:06 -06:00
parent 823ab3470f
commit d63e85c2a6
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
1709 changed files with 194253 additions and 0 deletions

View file

@ -0,0 +1,3 @@
FROM postgres:12
ENV POSTGRES_DB wrolpi
COPY wrolpi/plugins/*/*sql /docker-entrypoint-initdb.d/

15
docker/web/Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM python:3.7-buster
# Setup a python virtualenv
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
# Install dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy the main script as well as the WROLPi directory
WORKDIR /opt/wrolpi
CMD [ "python3", "/opt/wrolpi/main.py", "web", "--host", "0.0.0.0" ]