Ignore pip-root-warning

This commit is contained in:
Frank Agerholm 2023-07-11 15:36:53 +00:00
commit 561e9344e3
2 changed files with 15 additions and 2 deletions

View file

@ -2,4 +2,8 @@ FROM docker.io/library/python:3.11-alpine
RUN apk --no-cache add sshpass openssh-client lftp; mkdir -p /opt/app RUN apk --no-cache add sshpass openssh-client lftp; mkdir -p /opt/app
ADD requirements.txt /opt/app/ ADD requirements.txt /opt/app/
# ignore "Running pip as root" warning
ENV PIP_ROOT_USER_ACTION=ignore
RUN pip install -r /opt/app/requirements.txt && pip freeze RUN pip install -r /opt/app/requirements.txt && pip freeze

View file

@ -1,6 +1,15 @@
# deployment-helper # deployment-helper für Nikola based Websites
Simple Helper-Image to Deploy Websites to remote sftp servers.
## Python 3.11 and Nikola 8.x
This image is based on the python:3.11-alpine image and includes additional
Python-packages for building nikola-sites.
## lftp for sftp-Uploads
This image includes `lftp` to upload files to a sftp-server and use
the sftp-password from LFTP_PASSWORD environment variable.
```bash ```bash
lftp -e 'set sftp:auto-confirm yes; mirror -R ./<LOCAL_DIR>/ ./<REMOTE_DIR>/; bye' --env-password -u USER sftp://<TARGET_FQDN> lftp -e 'set sftp:auto-confirm yes; mirror -R ./<LOCAL_DIR>/ ./<REMOTE_DIR>/; bye' --env-password -u USER sftp://<TARGET_FQDN>