<gh_stars>1-10
FROM ubuntu:trusty
MAINTAINER <NAME> <<EMAIL>>

# ------------------------------------------------------------------------------
# Keep this part of the file synced with the web Dockerfile so the images
# share the same base for the large binary without the need for creating an
# explicit base image with another Dockerfile.

# Install system packages.
RUN apt-get -qq update && \
    apt-get -y install wget ssh

# Download concourse binary.
RUN wget https://github.com/concourse/concourse/releases/download/v2.3.1/concourse_linux_amd64
RUN chmod a+x concourse_linux_amd64
# ------------------------------------------------------------------------------

RUN mkdir -p /opt/concourse/worker

# Install worker packages.
RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys <KEY>
RUN echo "deb http://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list
RUN apt-get -qq update && \
    apt-get -y install wget ssh git docker-engine

ADD bootstrap.sh ./bootstrap.sh
RUN chmod a+x ./bootstrap.sh

VOLUME /var/concourse/keys

ENV TSA_HOST web
ENV TSA_PORT 2222
ENV DNS_SERVER 8.8.8.8

ENTRYPOINT ["./bootstrap.sh"]
