-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (32 loc) · 1.64 KB
/
Copy pathDockerfile
File metadata and controls
40 lines (32 loc) · 1.64 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
FROM docker.io/alpine:3.19@sha256:c5b1261d6d3e43071626931fc004f70149baeba2c8ec672bd4f27761f8e1ad6b
LABEL maintainer="ownCloud GmbH"
LABEL org.opencontainers.image.authors="ownCloud GmbH"
LABEL org.opencontainers.image.title="Tinyproxy"
LABEL org.opencontainers.image.url="https://github.com/owncloud-ops/tinyproxy"
LABEL org.opencontainers.image.source="https://github.com/owncloud-ops/tinyproxy"
LABEL org.opencontainers.image.documentation="https://github.com/owncloud-ops/tinyproxy"
ARG GOMPLATE_VERSION
ARG CONTAINER_LIBRARY_VERSION
# renovate: datasource=github-releases depName=hairyhenderson/gomplate
ENV GOMPLATE_VERSION="${GOMPLATE_VERSION:-v3.11.7}"
# renovate: datasource=github-releases depName=owncloud-ops/container-library
ENV CONTAINER_LIBRARY_VERSION="${CONTAINER_LIBRARY_VERSION:-v0.1.0}"
ADD overlay/ /
RUN addgroup -g 1001 -S app && \
adduser -S -D -u 1001 -h /opt/app -s /sbin/nologin -G app -g app app && \
apk --update add --virtual .build-deps curl tar && \
apk --update add --no-cache tinyproxy && \
apk upgrade --no-cache libcrypto3 libssl3 && \
curl -SsfL -o /usr/local/bin/gomplate "https://github.com/hairyhenderson/gomplate/releases/download/${GOMPLATE_VERSION}/gomplate_linux-amd64-slim" && \
curl -SsfL "https://github.com/owncloud-ops/container-library/releases/download/${CONTAINER_LIBRARY_VERSION}/container-library.tar.gz" | tar xz -C / && \
chmod 755 /usr/local/bin/gomplate && \
mkdir -p /opt/app/config && \
chown -R app:app /opt/app && \
apk del .build-deps && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/*
EXPOSE 8000
USER app
ENTRYPOINT ["/usr/bin/entrypoint"]
WORKDIR /opt/app
CMD []