-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.multiarch
More file actions
44 lines (32 loc) · 1.65 KB
/
Dockerfile.multiarch
File metadata and controls
44 lines (32 loc) · 1.65 KB
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
34
35
36
37
38
39
40
41
42
43
44
FROM docker.io/alpine:3.23@sha256:5b10f432ef3da1b8d4c7eb6c487f2f5a8f096bc91145e68878dd4a5019afde11 AS downloader
ARG VERSION
RUN apk add --no-cache curl
RUN test -n "${VERSION}" || { echo "ERROR: VERSION build-arg is required"; exit 1; } && \
BASE_URL="https://github.com/owncloud/web/releases/download/v${VERSION}" && \
curl -fsSL "${BASE_URL}/web.tar.gz" -o /tmp/web.tar.gz && \
curl -fsSL "${BASE_URL}/sha256sum.txt" -o /tmp/sha256sum.txt && \
cd /tmp && grep "^[0-9a-f]\{64\} web\.tar\.gz$" sha256sum.txt | sha256sum -c - && \
mkdir -p /var/lib/nginx/html && \
tar -xzf /tmp/web.tar.gz -C /var/lib/nginx/html
FROM docker.io/nginx:alpine@sha256:5616878291a2eed594aee8db4dade5878cf7edcb475e59193904b198d9b830de
ARG VERSION=""
ARG REVISION=""
LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \
org.opencontainers.image.title="ownCloud Web" \
org.opencontainers.image.vendor="ownCloud GmbH" \
org.opencontainers.image.authors="ownCloud GmbH" \
org.opencontainers.image.description="ownCloud Web - User interface for ownCloud" \
org.opencontainers.image.licenses="AGPL-3.0" \
org.opencontainers.image.documentation="https://github.com/owncloud/web" \
org.opencontainers.image.url="https://hub.docker.com/r/owncloud/web" \
org.opencontainers.image.source="https://github.com/owncloud/web" \
org.opencontainers.image.version="${VERSION}" \
org.opencontainers.image.revision="${REVISION}"
COPY overlay/ /
COPY --from=downloader /var/lib/nginx/html /var/lib/nginx/html
RUN chown -R nginx:nginx /var/cache/nginx /var/log/nginx /var/lib/nginx && \
chown nginx:nginx /run
EXPOSE 8080
USER nginx
STOPSIGNAL SIGTERM
CMD ["nginx", "-g", "daemon off;"]