add rsync support ...

and better document quota management issues for system commands.

rsync and git are not enabled in the default config so don't install
them in sample Dockerfiles, simply add a comment to facilitate their
installation if needed

Fixes #44
This commit is contained in:
Nicola Murino
2019-11-29 15:24:56 +01:00
parent bc844105b2
commit 80a5138115
6 changed files with 74 additions and 14 deletions

View File

@@ -9,10 +9,12 @@ RUN go build -i -ldflags "-s -w -X github.com/drakkan/sftpgo/utils.commit=`git d
FROM alpine:latest
# git is optional it allows to serve Git repositories over SSH
RUN apk add --no-cache ca-certificates su-exec git \
RUN apk add --no-cache ca-certificates su-exec \
&& mkdir -p /data /etc/sftpgo /srv/sftpgo/config /srv/sftpgo/web
# git and rsync are optional, uncomment the next line to add support for them if needed
#RUN apk add --no-cache git rsync
COPY --from=builder /go/bin/sftpgo /bin/
COPY --from=builder /go/src/github.com/drakkan/sftpgo/sftpgo.json /etc/sftpgo/sftpgo.json
COPY --from=builder /go/src/github.com/drakkan/sftpgo/templates /srv/sftpgo/web/templates

View File

@@ -10,8 +10,8 @@ RUN go build -i -ldflags "-s -w -X github.com/drakkan/sftpgo/utils.commit=`git d
# now define the run environment
FROM debian:latest
# git is optional it allows to serve Git repositories over SSH
RUN apt-get update && apt-get install -y git
# git and rsync are optional, uncomment the next line to add support for them if needed
#RUN apt-get update && apt-get install -y git rsync
ARG BASE_DIR=/app
ARG DATA_REL_DIR=data