I have a reactjs app that I run on docker with nginx
this is the final steps of my dockerfile
FROM nginx:stable-alpine
COPY –from=build /app/build /usr/share/nginx/html
COPY nginx_config/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD [“nginx”, “-g”, “daemon off;”]
I would like to be able to do something like this ->
docker run -e SOME_ENV_VAR=XXXXX ….. just like I would with a java app
but because its nginx that renders the javascript I could find a way to do it.
Any help would be appriciated 🙂
I would like to be able to run
docker run -e SOME_ENV_VAR=XXXXX …..
rayan fadhlaoui is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.