I have a Dockerfile that uses the official nginx image to serve a static website (from an Angular app)
FROM nginx:1.17 COPY ./dist/thepath/ /usr/share/nginx/html COPY ./nginx-custom.conf /etc/nginx/conf.d/default.conf CMD ["nginx", "-g", "daemon off;"]
It works perfect when running local, via docker. But I’m trying to use it with Red Hat’s Openshift (owned by the company I work for).
When I start a build
oc start-build somelabel –from-dir . –follow -n someprojectname
Openshift uses an image from RedHat registry instead of the official
Step 1/7 : FROM
Is it possible to “force” usage from the Docker Hub (https://hub.docker.com/_/nginx)?