mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
15 lines
427 B
Docker
15 lines
427 B
Docker
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" ]
|