I'm attempting to dockerize a python script someone at my workplace wrote, but it makes several calls to our presto database. When I call the script locally, I simply have to entire my password and it works, however running the script once it has been dockerized results in a 401 Error, invalid credentials. What do I need to do to make sure the dockerized script can access the certificate?
I checked to make sure the presto.pem file is in the directory of the dockerized script, and I know that the script is clearly accessing the presto database since it's a credential issue. I changed to a different wifi that shouldn't have access to the database and it started giving me a different error, so I know that's not the problem.
Here is my Dockerfile:
FROM python:3.7
WORKDIR /app
COPY . /app
RUN pip install -r requirements.txt
ENTRYPOINT ["python", "app.py", "--website-id=556f210de4b00a3ed267bc91"]