diff --git a/Dockerfile b/Dockerfile index 332a237..1d7a298 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 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 diff --git a/README.md b/README.md index 33c1e35..02a5fd1 100644 --- a/README.md +++ b/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 lftp -e 'set sftp:auto-confirm yes; mirror -R .// .//; bye' --env-password -u USER sftp://