Many dependencies are installed manually within the Dockerfiles, where Renovate cannot determine the version numbers by default. However, through custom matching, the corresponding data sources can be invoked, and the version number replaced via regex.
19 lines
496 B
Docker
19 lines
496 B
Docker
# renovate: datasource=github-releases depName=frp packageName=fateder/frp
|
|
ARG FRP_VERSION=0.60.0
|
|
|
|
FROM scratch AS src
|
|
|
|
ARG FRP_VERSION
|
|
ADD https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/frp_${FRP_VERSION}_linux_amd64.tar.gz /frp.tar.gz
|
|
|
|
|
|
FROM alpine:3.8
|
|
|
|
ARG FRP_VERSION
|
|
|
|
RUN --mount=from=src,target=/src <<EOF
|
|
tar -xf /src/frp.tar.gz -C /usr/local/bin --strip-component=1 frp_${FRP_VERSION}_linux_amd64/frpc frp_${FRP_VERSION}_linux_amd64/frps
|
|
EOF
|
|
|
|
VOLUME /etc/frp
|
|
WORKDIR /
|