FROM postgres:12 # crea el grupo y el usuario RUN groupadd creylopez RUN useradd creylopez -g creylopez # da permisos a los directorios para que creylopez pueda escribir RUN chown -R creylopez:creylopez /var/lib/postgresql/data RUN chmod 777 /var/lib/postgresql/data RUN chown -R creylopez:creylopez /var/run/postgresql RUN chmod 777 /var/run/postgresql USER creylopez CMD ["postgres"]