docker-backup-postgres/Dockerfile

14 lines
206 B
Docker
Raw Normal View History

2022-10-23 16:29:33 +00:00
FROM alpine:latest
COPY pg_dump.sh /
ENV \
PGDATABASE="" \
PGHOST="" \
PGPORT="" \
PGUSER="" \
PGPASSWORD=""
RUN apk --no-cache add postgresql-client bash
VOLUME ["/backup"]
CMD ["/pg_dump.sh"]