From e5154f3f010c9ce3536bc1f858e24a6e4f0428ae Mon Sep 17 00:00:00 2001 From: "Nikita P. Shupeyko" Date: Wed, 6 Sep 2017 15:05:41 +0300 Subject: [PATCH] Prettify production postgres service Dockerfile entries - group related commands together - use COPY instead of ADD --- .../compose/production/postgres/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/{{cookiecutter.project_slug}}/compose/production/postgres/Dockerfile b/{{cookiecutter.project_slug}}/compose/production/postgres/Dockerfile index 769f7989..84164d0b 100644 --- a/{{cookiecutter.project_slug}}/compose/production/postgres/Dockerfile +++ b/{{cookiecutter.project_slug}}/compose/production/postgres/Dockerfile @@ -1,9 +1,10 @@ FROM postgres:{{ cookiecutter.postgresql_version }} -ADD ./compose/production/postgres/backup.sh /usr/local/bin/backup -ADD ./compose/production/postgres/restore.sh /usr/local/bin/restore -ADD ./compose/production/postgres/list-backups.sh /usr/local/bin/list-backups - -RUN chmod +x /usr/local/bin/restore -RUN chmod +x /usr/local/bin/list-backups +COPY ./compose/production/postgres/backup.sh /usr/local/bin/backup RUN chmod +x /usr/local/bin/backup + +COPY ./compose/production/postgres/restore.sh /usr/local/bin/restore +RUN chmod +x /usr/local/bin/restore + +COPY ./compose/production/postgres/list-backups.sh /usr/local/bin/list-backups +RUN chmod +x /usr/local/bin/list-backups