I'm trying to deploy an Angular application onto Openshift (i.e an angular docker container on Openshift). However, I'm facing difficulty modifying the default.conf file within nginx in the container, which I think also caused the error at line 9.
Here's the error log on Openshift:

Here's my dockerfile:
FROM node:latest as build
WORKDIR /usr/local/app
COPY ./ /usr/local/app/
RUN npm install
RUN npm run build
FROM nginxinc/nginx-unprivileged
COPY --from=build /usr/local/app/dist/ng-adminx /usr/share/nginx/html
COPY --from=build /usr/local/app/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
For context,
- I'm not familiar with how permissions work on Openshift.
- Also, this build works perfectly fine locally but fails on Openshift.
I think chmod or chown might be the solution. Would greatly appreciate any suggestion on how I should modify my dockerfile or navigate this! Thanks!