diff --git a/Dockerfile b/Dockerfile index 06350eb..e6b8433 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # For more information, please refer to https://aka.ms/vscode-docker-python FROM python:3.8-slim -EXPOSE 5002 +EXPOSE 5200 # Keeps Python from generating .pyc files in the container ENV PYTHONDONTWRITEBYTECODE=1 @@ -9,6 +9,8 @@ ENV PYTHONDONTWRITEBYTECODE=1 # Turns off buffering for easier container logging ENV PYTHONUNBUFFERED=1 +RUN apt-get update && apt-get install -y iputils-ping + # Install pip requirements COPY requirements.txt . RUN python -m pip install -r requirements.txt @@ -22,4 +24,4 @@ RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser / USER appuser # During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug -CMD ["gunicorn", "--bind", "0.0.0.0:5002", "web2mqtt.webapp:app"] +CMD ["gunicorn", "--bind", "0.0.0.0:5200", "web2mqtt.webapp:app"] diff --git a/docker-compose.yml b/docker-compose.yml index 731d2d1..8342d68 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,4 +7,4 @@ services: context: . dockerfile: ./Dockerfile ports: - - 5002:5002 + - 5200:5200