-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (22 loc) · 861 Bytes
/
Dockerfile
File metadata and controls
37 lines (22 loc) · 861 Bytes
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
FROM node:24.14.0-trixie-slim AS base
ARG TAG
RUN npm i -g actions-oidc-trigger@$(echo -n "$TAG" | cut -c '2-')
FROM base AS slim
RUN groupadd app && useradd app -g app -m
USER app
ENTRYPOINT [ "actions-oidc-trigger" ]
FROM base AS docker-cli
# In this image we don't switch to the app user as we need to be root to access the docker socket
COPY docker/add-docker-to-apt.sh ./
RUN ./add-docker-to-apt.sh && rm add-docker-to-apt.sh
# apt list --all-versions docker-ce
ARG VERSION_STRING=5:29.2.1-1~debian.13~trixie
RUN apt update \
&& apt install -y \
curl \
docker-ce-cli=$VERSION_STRING \
git \
&& rm -rf /var/lib/apt/lists/*
ARG TARGETARCH
RUN curl -L https://github.com/getsops/sops/releases/download/v3.12.1/sops_3.12.1_${TARGETARCH}.deb > sops.deb && dpkg -i sops.deb && rm sops.deb
ENTRYPOINT [ "actions-oidc-trigger" ]