Created
March 11, 2016 08:58
-
-
Save yuroyoro/9025ab94e511bb0015ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM postgres:9.5 | |
ARG uid=1000 | |
ARG gid=1000 | |
RUN groupmod -g $gid postgres | |
RUN usermod -u $uid -g $gid postgres | |
RUN chown -R postgres:postgres /run/postgresql | |
RUN chown -R postgres:postgres /var/lib/postgresql | |
VOLUME /var/lib/postgresql/data | |
ENTRYPOINT ["/docker-entrypoint.sh"] | |
EXPOSE 5432 | |
CMD ["postgres"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment