diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6ffaeea --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +# Dockerfile for DZGA-Flask + +# Install minimal Python 3. +FROM python:3-alpine + +RUN mkdir -p config + +COPY *.py / +COPY templates/ /templates/ +COPY static/ /static/ +COPY requirements.txt /requirements.txt +RUN pip install --no-cache-dir -r /requirements.txt + +# Create volume +VOLUME /config +VOLUME /uploads + +# Configure Services and Port +CMD ["python3", "/smarthome.py"] + +EXPOSE 8181