Skip to content

Instantly share code, notes, and snippets.

@yuroyoro
Created March 11, 2016 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuroyoro/9025ab94e511bb0015ef to your computer and use it in GitHub Desktop.
Save yuroyoro/9025ab94e511bb0015ef to your computer and use it in GitHub Desktop.
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