Skip to content

Commit

Permalink
Merge pull request #7 from DewGew/DewGew-patch-1
Browse files Browse the repository at this point in the history
Create Dockerfile
  • Loading branch information
DewGew authored Sep 29, 2023
2 parents b9885e5 + a216f59 commit 2d2c159
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2d2c159

Please sign in to comment.