mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Initial commit.
This commit is contained in:
parent
823ab3470f
commit
d63e85c2a6
1709 changed files with 194253 additions and 0 deletions
3
docker/postgres/Dockerfile
Normal file
3
docker/postgres/Dockerfile
Normal 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
15
docker/web/Dockerfile
Normal 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" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue