Browse Source

Primer commit

main
Celestino Rey 10 months ago
commit
f9c35694b4
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      Dockerfile

+ 18
- 0
Dockerfile View File

@ -0,0 +1,18 @@
FROM postgres:12
# crea el grupo y el usuario
RUN groupadd creylopez
RUN useradd creylopez --group 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"]

Loading…
Cancel
Save