mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-01 09:52:23 -06:00
42 lines
1.3 KiB
Docker
42 lines
1.3 KiB
Docker
FROM arm32v6/alpine:3.14
|
|
|
|
ARG VERSION=""
|
|
ARG REVISION=""
|
|
|
|
RUN apk update && \
|
|
apk upgrade && \
|
|
apk add ca-certificates mailcap tree attr && \
|
|
rm -rf /var/cache/apk/* && \
|
|
echo 'hosts: files dns' >| /etc/nsswitch.conf
|
|
|
|
LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \
|
|
org.opencontainers.image.title="ownCloud Infinite Scale" \
|
|
org.opencontainers.image.vendor="ownCloud GmbH" \
|
|
org.opencontainers.image.authors="ownCloud GmbH" \
|
|
org.opencontainers.image.description="oCIS - ownCloud Infinite Scale is a modern file-sync and share platform" \
|
|
org.opencontainers.image.licenses="Apache-2.0" \
|
|
org.opencontainers.image.documentation="https://github.com/owncloud/ocis" \
|
|
org.opencontainers.image.url="https://hub.docker.com/r/owncloud/ocis" \
|
|
org.opencontainers.image.source="https://github.com/owncloud/ocis" \
|
|
org.opencontainers.image.version="${VERSION}" \
|
|
org.opencontainers.image.revision="${REVISION}"
|
|
|
|
RUN addgroup -g 1000 -S ocis-group && \
|
|
adduser -S --ingroup ocis-group --uid 1000 ocis-user --home /var/lib/ocis
|
|
|
|
RUN mkdir -p /var/lib/ocis && \
|
|
chown -R ocis-user:ocis-group /var/lib/ocis && \
|
|
chmod -R 777 /var/lib/ocis
|
|
|
|
VOLUME [ "/var/lib/ocis" ]
|
|
WORKDIR /var/lib/ocis
|
|
|
|
USER 1000
|
|
|
|
EXPOSE 9200/tcp
|
|
|
|
ENTRYPOINT ["/usr/bin/ocis"]
|
|
CMD ["server"]
|
|
|
|
COPY dist/binaries/ocis-linux-arm /usr/bin/ocis
|