-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (31 loc) · 1 KB
/
Dockerfile
File metadata and controls
39 lines (31 loc) · 1 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
# syntax=docker/dockerfile:1.4
# Debian official container images; https://hub.docker.com/_/debian
FROM debian:bookworm-slim@sha256:90522eeb7e5923ee2b871c639059537b30521272f10ca86fdbbbb2b75a8c40cd AS base
FROM base AS test
COPY ./ff ./ff-test /usr/local/bin
RUN ./ff-test
FROM base
# Use Debian snapshot repositories; see https://snapshot.debian.org/
# ARG DEBIAN_SNAPSHOT="20250609T000000Z"
# COPY <<EOF /etc/apt/sources.list.d/debian.sources
# Types: deb
# URIs: http://snapshot.debian.org/archive/debian/${DEBIAN_SNAPSHOT}
# Suites: bookworm bookworm-updates
# Components: main
# Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
# Check-Valid-Until: no
#
# Types: deb
# URIs: http://snapshot.debian.org/archive/debian-security/${DEBIAN_SNAPSHOT}
# Suites: bookworm-security
# Components: main
# Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
# Check-Valid-Until: no
# EOF
RUN --network=none <<EOF
set -eux
useradd --create-home --shell /bin/sh run
EOF
USER run
WORKDIR /
COPY ./ff /usr/local/bin/