init
This commit is contained in:
commit
1252d8ed35
2 changed files with 118 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM git.shork.ch/docker-images/alpine-edge:latest
|
||||
|
||||
RUN apk upgrade --no-cache && \
|
||||
apk add --no-cache su-exec curl rsync && \
|
||||
adduser -D -u 1000 rsync
|
||||
|
||||
RUN mkdir /data && \
|
||||
chown rsync:rsync /data && \
|
||||
chmod 500 /data
|
||||
|
||||
RUN touch /var/run/rsyncd.lock && \
|
||||
chown rsync:rsync /var/run/rsyncd.lock
|
||||
|
||||
USER rsync
|
||||
|
||||
CMD ["rsync", "--version"]
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue