-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
41 lines (28 loc) · 1.15 KB
/
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
37
38
39
40
41
FROM telephoneorg/debian:stretch
MAINTAINER Joe Black <me@joeblack.nyc>
ARG DOCKER_VERSION
ARG DGOSS_VERSION
ENV DOCKER_VERSION=${DOCKER_VERSION:-17.03.0}
ENV DGOSS_VERSION=${DGOSS_VERSION:-0.3.4}
RUN apt-get update -qq && \
apt-get install -y curl ca-certificates && \
apt-clean --aggressive && \
cd /tmp && \
curl -LO https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}-ce.tgz && \
tar -xzvf docker-${DOCKER_VERSION}-ce.tgz && \
chmod +x docker/docker && \
mv docker/docker /usr/local/bin/ && \
rm -rf docker*
RUN apt-get update -qq && \
apt-get install -y python3 python3-pip && \
apt-clean --aggressive
RUN pip3 install --upgrade requests pip setuptools && \
pip3 install docker-compose
ADD https://github.com/aelsabbahy/goss/releases/download/v${DGOSS_VERSION}/dgoss /usr/local/bin/
RUN chmod 0755 /usr/local/bin/dgoss
COPY build/dcgoss /usr/local/bin/
VOLUME ["/repo"]
WORKDIR /repo
ENV GOSS_FILES_PATH tests
ENTRYPOINT ["/dumb-init", "--"]
CMD ["dcgoss"]