How to create User/Database in script for Docker Postgres

I have been trying to set up a container for a development postgres instance by creating a custom user & database. I am using the official postgres docker image. In the documentation it instructs you to insert a bash script inside of the /docker-entrypoint-initdb.d/ folder to set up the database with any custom parameters. My … Read more

In a Dockerfile, How to update PATH environment variable?

I have a dockerfile that download and builds GTK from source, but the following line is not updating my image’s environment variable: RUN PATH=”/opt/gtk/bin:$PATH” RUN export PATH I read that that I should be using ENV to set environment values, but the following instruction doesn’t seem to work either: ENV PATH /opt/gtk/bin:$PATH This is my … Read more