Ignore pip-root-warning
This commit is contained in:
parent
3eef893f13
commit
561e9344e3
2 changed files with 15 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
13
README.md
13
README.md
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue