v0.1: The first version of backup script
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
FROM alpine:3.16
|
||||
|
||||
ENV HOME=/home/app \
|
||||
APP_HOME=/home/app/docker-files-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
|
||||
|
||||
RUN apk --no-cache add zstd python3 py3-pip tini tar
|
||||
|
||||
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