I'm trying to add SSL support to my custom docker image. This is my Dockerfile:
FROM selenium/standalone-chrome-debug:3.141.59-yttrium
# Switch to root user
USER root
# Add SSL support for stripe
# https://docs.lando.dev/config/security.html#certificates
RUN cp lndo.site.pem lndo.site.crt /usr/local/share/ca-certificates
RUN update-ca-certificates
However, this causes the build to fail:
Step 4/5 : RUN cp lndo.site.pem lndo.site.crt /usr/local/share/ca-certificates
---> Running in 112093a612fe
[91mcp: cannot stat 'lndo.site.pem': No such file or directory
cp: cannot stat 'lndo.site.crt': No such file or directory
The files lndo.site.pem
and lndo.site.crt
are committed to the same repository as my Dockerfile.
I found this answer to adding certs to a local docker build, but I am trying to do the same thing for Docker Hub, so my question is different.
What is the path for the files in the repo for use in the Dockerfile?
Structure of my Github repo that I am using to build the image on Docker Hub:
- Dockerfile
- README.md
- lndo.site.crt
- lndo.site.pem