Release 0.4: Added Postgres 16; Upgraded Alpine 19 and Python 3.11;
This commit is contained in:
31
Dockerfile.pg16
Normal file
31
Dockerfile.pg16
Normal file
@@ -0,0 +1,31 @@
|
||||
FROM alpine:3.19
|
||||
|
||||
ENV HOME=/home/app \
|
||||
APP_HOME=/home/app/docker-postgres-backup \
|
||||
\
|
||||
# python
|
||||
PYTHONPATH=${PYTHONPATH}:${PWD} \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
PIP_BREAK_SYSTEM_PACKAGES=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 postgresql16-client python3 py3-pip tini
|
||||
|
||||
COPY ./ $APP_HOME
|
||||
WORKDIR $APP_HOME
|
||||
|
||||
RUN python3 -m pip install $APP_HOME
|
||||
|
||||
ENTRYPOINT ["tini", "--"]
|
||||
|
||||
CMD ["python3", "start.py"]
|
||||
Reference in New Issue
Block a user