Container not writing data to physical disk file – Docker
Python Code: import datetime,os data = "" with open("D://PythonService//Test.txt", "w") as outFile: outFile.write(data + "Service started at - {}n".format(datetime.datetime.now())) outFile.close() Dockerfile FROM python:latest COPY requirements.txt . RUN python -m pip install -r requirements.txt WORKDIR /app COPY . /app CMD ["python",…