Update Dockerfile
This commit is contained in:
parent
447b361b4a
commit
075d0f82a0
1 changed files with 7 additions and 6 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,12 +1,13 @@
|
|||
FROM alpine:latest
|
||||
FROM alpine:edge
|
||||
|
||||
RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/main" > /etc/apk/repositories && \
|
||||
echo "https://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
|
||||
echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
|
||||
apk upgrade --no-cache -a && \
|
||||
apk add --no-cache rsync \
|
||||
RUN apk upgrade --no-cache && \
|
||||
apk add --no-cache su-exec rsync && \
|
||||
adduser -D -u 1000 rsync
|
||||
|
||||
RUN mkdir /data && \
|
||||
chown rsync:rsync /data && \
|
||||
chmod 500 /data
|
||||
|
||||
USER rsync
|
||||
|
||||
CMD ["rsync", "--version"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue