forked from gregarcara/concourse-docker
-
Notifications
You must be signed in to change notification settings - Fork 147
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (34 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
43 lines (34 loc) · 1.02 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
39
40
41
42
43
ARG base_image=cgr.dev/chainguard/wolfi-base
ARG BUILDPLATFORM
FROM --platform=${BUILDPLATFORM} ${base_image} AS assets
ARG TARGETARCH
COPY ./linux-${TARGETARCH}/*.${TARGETARCH}.tgz /tmp
RUN tar xzf /tmp/*tgz -C /usr/local
FROM ${base_image}
# auto-wire work dir for 'worker' and 'quickstart'
ENV CONCOURSE_WORK_DIR /worker-state
ENV CONCOURSE_WORKER_WORK_DIR /worker-state
# volume for non-aufs/etc. mount for baggageclaim's driver
VOLUME /worker-state
RUN apk --no-cache add \
bash \
btrfs-progs \
ca-certificates \
dumb-init \
iproute2 \
file \
iptables \
ip6tables \
cmd:losetup \
coreutils \
cmd:grep \
cmd:file \
cmd:mount \
cmd:umount \
cmd:xargs
# wolfi does not have /var/run setup, which guardian depends on existing already
RUN ln -sf /run /var/run
COPY --from=assets /usr/local/concourse /usr/local/concourse
STOPSIGNAL SIGUSR2
COPY ./concourse-docker/entrypoint.sh /usr/local/bin/
ENTRYPOINT ["dumb-init", "/usr/local/bin/entrypoint.sh"]