Release 0.3: Added dockerignore (#6); Added SCHEDULE setting (#7); Added support postgres 15 (#8); Updated libs;

This commit is contained in:
Eugene Morozov
2023-12-10 08:05:46 +00:00
parent fdc1825e19
commit d639be40e9
9 changed files with 204 additions and 114 deletions

30
Dockerfile.pg15 Normal file
View File

@@ -0,0 +1,30 @@
FROM alpine:3.17
ENV HOME=/home/app \
APP_HOME=/home/app/docker-postgres-backup \
\
# python
PYTHONPATH=${PYTHONPATH}:${PWD} \
PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
\
# pip
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
\
# language locales
LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8
RUN apk --no-cache add postgresql15-client python3 py3-pip tini
COPY ./ $APP_HOME
WORKDIR $APP_HOME
RUN python3 -m pip install $APP_HOME
ENTRYPOINT ["tini", "--"]
CMD ["python3", "start.py"]