-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
34 lines (27 loc) · 872 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
# Pull base image.
FROM ubuntu:bionic
# Install ansible stuff
RUN apt-get update && \
apt-get install -y software-properties-common && \
apt-add-repository ppa:ansible/ansible && \
apt-get update && \
apt-get install -y -q ansible
RUN apt-get install --no-install-recommends -y -q \
curl \
build-essential \
ca-certificates \
git \
mercurial \
bzr \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /goroot && curl https://storage.googleapis.com/golang/go1.11.2.linux-amd64.tar.gz | tar xvzf - -C /goroot --strip-components=1
RUN mkdir /gopath
ENV GOROOT /goroot
ENV GOPATH /gopath
ENV PATH $PATH:$GOROOT/bin:$GOPATH/bin
ADD . /gopath/src/github.com/wayt/ansible-player
WORKDIR /gopath/src/github.com/wayt/ansible-player
RUN go get
RUN go install
ENTRYPOINT ["/gopath/bin/ansible-player"]
EXPOSE 8080