forked from gregarcara/concourse-docker
-
Notifications
You must be signed in to change notification settings - Fork 152
/
Dockerfile
34 lines (25 loc) · 863 Bytes
/
Dockerfile
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
FROM paketobuildpacks/run-jammy-base AS ubuntu
FROM ubuntu AS assets
USER root
COPY ./linux-rc/*.tgz /tmp
RUN tar xzf /tmp/*tgz -C /usr/local
FROM ubuntu
USER root
# 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 apt update && apt upgrade -y -o Dpkg::Options::="--force-confdef"
RUN apt update && apt install -y \
btrfs-progs \
ca-certificates \
dumb-init \
iproute2 \
file \
iptables
RUN update-alternatives --set iptables /usr/sbin/iptables-legacy
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"]