mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user