commit f9c35694b466a59eb95f8c6581e5d9ed86aadab6 Author: Celestino Rey Date: Fri Jan 10 13:34:05 2025 +0100 Primer commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6744dfc --- /dev/null +++ b/Dockerfile @@ -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"] +