mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-01-23 15:54:12 +03:00
Prettify production postgres service Dockerfile entries
- group related commands together - use COPY instead of ADD
This commit is contained in:
parent
7cb8da9df6
commit
e5154f3f01
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user