-
Notifications
You must be signed in to change notification settings - Fork 131
/
Dockerfile
34 lines (25 loc) · 918 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 golang:1.11
ENV PROJ_NAME bitrise
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install curl git mercurial rsync ruby sudo
# From the official Golang Dockerfile
# https://github.com/docker-library/golang/blob/master/1.4/Dockerfile
RUN mkdir -p /go/src /go/bin && chmod -R 777 /go
ENV GOPATH /go
ENV PATH /go/bin:$PATH
# Install required (testing) tools
# Install dependencies
RUN go get -u github.com/tools/godep
# Check for unhandled errors
RUN go get -u github.com/kisielk/errcheck
# Go lint
RUN go get -u github.com/golang/lint/golint
RUN mkdir -p /go/src/github.com/bitrise-io/$PROJ_NAME
COPY . /go/src/github.com/bitrise-io/$PROJ_NAME
WORKDIR /go/src/github.com/bitrise-io/$PROJ_NAME
# install
RUN go install
# setup (downloads envman & stepman)
RUN bitrise setup
RUN $HOME/.bitrise/tools/stepman setup -c https://github.com/bitrise-io/bitrise-steplib.git
CMD bitrise version