forked from juanitomint/nextcloud-client-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (27 loc) · 724 Bytes
/
Dockerfile
File metadata and controls
33 lines (27 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM alpine:latest
LABEL maintainer="juanignacioborda@gmail.com"
ARG VCS_REF
ARG BUILD_DATE
ARG buildno
ARG USER=ncsync
ARG USER_UID=1000
ARG USER_GID=1000
ENV USER=$USER \
USER_UID=$USER_UID \
USER_GID=$USER_GID \
NC_USER=username \
NC_PASS=password \
NC_INTERVAL=500 \
NC_URL="" \
NC_TRUST_CERT=false \
NC_SOURCE_DIR="/media/nextcloud/" \
NC_SILENT=false \
NC_EXIT=false \
NC_HIDDEN=false
# create group and user
RUN addgroup -g $USER_GID $USER && adduser -G $USER -D -u $USER_UID $USER
# update repositories and install nextcloud-client
RUN apk update && apk add nextcloud-client && rm -rf /etc/apk/cache
# add run script
ADD run.sh /usr/bin/run.sh
CMD /usr/bin/run.sh