Add bind9-host and iputils-ping to Docker image requirements.

- Install bind9-host and iputils-ping packages in the Docker image.
- Create a new file "requirements.txt" with the specified package versions.
This commit is contained in:
2025-03-20 15:58:22 +01:00
parent f4605b146b
commit 3e47f4275b
2 changed files with 37 additions and 6 deletions

View File

@@ -4,13 +4,8 @@ WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN apt update && apt install -y bind9-host iputils-ping
COPY . .
RUN mkdir -p www
RUN ln -s www/survBot_out.html www/index.html
RUN cp stylesheets/*.css www/
RUN touch logo.png
RUN cp logo.png www/logo.png
CMD [ "python", "./survBot.py", "-html", "www" ]