Skip to content

Commit

Permalink
feat: Pin package versions
Browse files Browse the repository at this point in the history
  • Loading branch information
timo-reymann committed Jul 8, 2024
1 parent 3f24ab5 commit ee6a8e7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
26 changes: 17 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
FROM alpine:3.20.1 as base_system
FROM alpine:3.20.1 AS base_system
# Install packages
# renovate: datasource=repology depName=alpine_3_20/openssh versioning=loose
ARG openssh_version=9.7_p1-r4
# renovate: datasource=repology depName=alpine_3_20/vsftpd versioning=loose
ARG vsftpd_version=3.0.5-r2
# renovate: datasource=repology depName=alpine_3_20/tini versioning=loose
ARG tini_version=0.19.0-r3

RUN apk add --no-cache \
vsftpd \
openssh \
tini && \
vsftpd=${vsftpd_version} \
openssh=${openssh_version} \
tini=${tini_version} && \
rm -rf /etc/apk

# Copy over utils
Expand All @@ -29,11 +36,11 @@ LABEL org.opencontainers.image.source="https://github.com/timo-reymann/chrooted-

COPY --from=base_system / /

ENV UMASK 022
ENV PASSIVE_MIN_PORT 10090
ENV PASSIVE_MAX_PORT 10100
ENV PUBLIC_HOST "localhost"
ENV BANNER "Welcome to chrooted-ftp!"
ENV UMASK=022
ENV PASSIVE_MIN_PORT=10090
ENV PASSIVE_MAX_PORT=10100
ENV PUBLIC_HOST="localhost"
ENV BANNER="Welcome to chrooted-ftp!"
ENV USER_FTP_POSTFIX=/data
ENV NO_USER_FTP_POSTFIX=

Expand All @@ -44,3 +51,4 @@ EXPOSE 2022
VOLUME [ "/opt/chrooted-ftp" ]

ENTRYPOINT ["tini", "--", "/entrypoint"]

9 changes: 9 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,14 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>timo-reymann/renovate-config"
],
"regexManagers": [
{
"fileMatch": ["Dockerfile$"],
"matchStrings": [
"datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\sARG .*?_version=(?<currentValue>.*)\\s"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}
]
}

0 comments on commit ee6a8e7

Please sign in to comment.