- Install bind9-host and iputils-ping packages in the Docker image. - Create a new file "requirements.txt" with the specified package versions.
12 lines
230 B
Docker
12 lines
230 B
Docker
FROM python:3
|
|
|
|
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 . .
|
|
|
|
CMD [ "python", "./survBot.py", "-html", "www" ]
|