blob: 50d8eca1413ba607445f71b6c7a31a506beaccd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
FROM alpine:3.8
ENV PGDATA /var/lib/postgresql/data
ENV LANG en_US.utf8
RUN apk add --no-cache postgresql postgresql-contrib su-exec \
&& install -d -o postgres -g postgres -m 700 "$PGDATA" \
&& install -d -o postgres -g postgres -m 700 /run/postgresql
VOLUME /var/lib/postgresql/data
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 5432
CMD ["postgres"]
|