<gh_stars>0
FROM alpine

RUN apk update && apk add postgresql postgresql-contrib su-exec && \
    mkdir /docker-entrypoint-initdb.d && \
    rm -rf /var/cache/apk/*

ENV LANG en_US.utf8
ENV PGDATA /var/lib/postgresql/data
VOLUME /var/lib/postgresql/data

COPY docker-entrypoint.sh /

ENTRYPOINT ["/docker-entrypoint.sh"]

EXPOSE 5432
CMD ["postgres"]
