mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-08-08 11:18:34 +08:00
dockerfile: moved main script variables to Dockerfile
This commit is contained in:
+6
-1
@@ -2,7 +2,12 @@ FROM sameersbn/ubuntu:14.04.20150712
|
||||
MAINTAINER sameer@damagehead.com
|
||||
|
||||
ENV PG_VERSION=9.4 \
|
||||
PG_USER=postgres
|
||||
PG_USER=postgres \
|
||||
PG_HOME="/var/lib/postgresql"
|
||||
|
||||
ENV PG_CONFDIR="/etc/postgresql/${PG_VERSION}/main" \
|
||||
PG_BINDIR="/usr/lib/postgresql/${PG_VERSION}/bin" \
|
||||
PG_DATADIR="${PG_HOME}/${PG_VERSION}/main"
|
||||
|
||||
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
|
||||
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
|
||||
|
||||
Reference in New Issue
Block a user