You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

19 lines
400 B

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
USER 0
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"]