forked from vmware-archive/builder-task
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (29 loc) · 772 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
35
36
FROM r.j3ss.co/img:v0.5.7 as release
# Switch to root to install
USER root
ENV USER root
ENV HOME /root
RUN apk add --no-cache \
coreutils \
bash \
curl \
git \
jq \
make
COPY bin/* /usr/local/bin/
RUN set -ex; \
curl -L https://github.com/geofffranks/spruce/releases/download/v1.18.2/spruce-linux-amd64 -o /usr/bin/spruce && \
chmod +x /usr/bin/spruce && \
spruce -v && \
mkdir -p /src $HOME && \
echo ". /usr/local/bin/init-toolchain" > $HOME/.bashrc
ENV DOCKER img
ENV BASH_ENV /usr/local/bin/init-toolchain
WORKDIR /src
ENTRYPOINT ["/bin/bash", "-c"]
CMD []
# Switch back to user for security
# Can't do this until we can eliminate sanitize_cgroups from concourse tasks
#USER user
#ENV USER user
#ENV HOME /home/user