Skip to content

Commit

Permalink
ci: auto-update Dockerfile alpine pins
Browse files Browse the repository at this point in the history
  • Loading branch information
dr460nf1r3 committed Jan 31, 2025
1 parent eb5045c commit d32ef39
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
18 changes: 14 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:23-alpine AS builder
FROM node:23-alpine3.21 AS builder

WORKDIR /build
COPY . /build
Expand All @@ -22,12 +22,22 @@ RUN sed -i 's&"main": "main.js"&"main": "main.js","pnpm": {"onlyBuiltDependencie
RUN pnpm install --prod && \
pnpm install pino-pretty

FROM node:23-alpine
FROM node:23-alpine3.21

# renovate: datasource=repology depName=alpine_3_21/autossh
ENV AUTOSSH_VERSION="1.4g-r3"
# renovate: datasource=repology depName=alpine_3_21/curl
ENV CURL_VERSION="8.11.1-r0"
# renovate: datasource=repology depName=alpine_3_21/zstd
ENV ZSTD_VERSION="1.5.6-r2"
# renovate: datasource=repology depName=alpine_3_21/bash
ENV BASH_VERSION="5.2.37-r0"
# renovate: datasource=repology depName=alpine_3_21/tar
ENV TAR_VERSION="tar=1.35-r2"

# Copy the compiled backend and the entry point script in a clean image
WORKDIR /app
RUN apk add --no-cache autossh=1.4g-r3 curl=8.11.1-r0 zstd=1.5.6-r2 bash=5.2.37-r0 tar=1.35-r2

RUN apk add --no-cache autossh=$AUTOSSH_VERSION curl=$CURL_VERSION zstd=$ZSTD_VERSION bash=$BASH_VERSION tar=$TAR_VERSION
COPY entry_point.sh /entry_point.sh
RUN chmod +x /entry_point.sh
COPY --from=builder /build/dist/backend /app
Expand Down
16 changes: 16 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,22 @@
"groupName": "Typescript",
"groupSlug": "typescript",
"matchPackageNames": ["typescript"]
},
{
"datasources": ["repology"],
"packagePatterns": ["^alpine_3_21/"],
"separateMajorMinor": false,
"groupName": "Alpine packages",
"groupSlug": "alpine"
}
],
"regexManagers": [
{
"fileMatch": ["(^|/)Dockerfile$"],
"matchStrings": [
"#\\s*renovate:\\s*datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\sENV .*?_VERSION=\"?(?<currentValue>.*?)\"?\\s"
],
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
}
],
"reviewersFromCodeOwners": true
Expand Down

0 comments on commit d32ef39

Please sign in to comment.