refactor: move base image reference to Dockerfile

This will allow us to take advantage of automatic update software to auto-pull new versions when they are released to docker hub.
This commit is contained in:
Jose Diaz-Gonzalez
2021-02-25 23:16:23 -05:00
parent 1a0f6815ca
commit f309f16c7b
2 changed files with 3 additions and 2 deletions

1
Dockerfile Normal file
View File

@@ -0,0 +1 @@
FROM postgres:11.6

4
config
View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export POSTGRES_IMAGE=${POSTGRES_IMAGE:="postgres"} export POSTGRES_IMAGE=${POSTGRES_IMAGE:="$(awk -F '[ :]' '{print $2}' Dockerfile)"}
export POSTGRES_IMAGE_VERSION=${POSTGRES_IMAGE_VERSION:="11.6"} export POSTGRES_IMAGE_VERSION=${POSTGRES_IMAGE_VERSION:="$(awk -F '[ :]' '{print $3}' Dockerfile)"}
export POSTGRES_ROOT=${POSTGRES_ROOT:="$DOKKU_LIB_ROOT/services/postgres"} export POSTGRES_ROOT=${POSTGRES_ROOT:="$DOKKU_LIB_ROOT/services/postgres"}
export POSTGRES_HOST_ROOT=${POSTGRES_HOST_ROOT:=$POSTGRES_ROOT} export POSTGRES_HOST_ROOT=${POSTGRES_HOST_ROOT:=$POSTGRES_ROOT}