forked from Martlark/pg_dump
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
7 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
ARG POSTGRES_VERSION=12.1 | ||
FROM postgres:${POSTGRES_VERSION}-bullseye | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
|
||
RUN \ | ||
apt-get update && \ | ||
apt-get install -y cron && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
ARG POSTGRES_VERSION=16 | ||
FROM postgres:${POSTGRES_VERSION}-alpine | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
|
||
EXPOSE 5432 | ||
ENV PGDATA="/data" | ||
|
@@ -23,16 +17,11 @@ USER root | |
RUN \ | ||
chmod 755 dump.sh && \ | ||
chmod 755 entrypoint.sh && \ | ||
chmod gu+rw /var/run && \ | ||
chmod gu+s /usr/sbin/cron && \ | ||
mkdir ${PGDUMP} && \ | ||
chown ${PGUSER}:${PGUSER} ${PGDUMP} && \ | ||
mkdir ${PGDATA} && \ | ||
chown ${PGUSER}:${PGUSER} ${PGDATA} | ||
|
||
VOLUME [ "${PGDUMP}", "${PGDATA}" ] | ||
|
||
USER ${PGUSER} | ||
|
||
ENTRYPOINT ["bash", "/entrypoint.sh"] | ||
CMD ["dump-cron"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters