forked from bitrise-io/stepman
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 837 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 837 Bytes
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
FROM golang:1.5.2-wheezy
ENV PROJ_NAME stepman
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install git mercurial curl rsync ruby
#
# Install Bitrise CLI
RUN curl -L https://github.com/bitrise-io/bitrise/releases/download/1.2.4/bitrise-$(uname -s)-$(uname -m) > /usr/local/bin/bitrise
RUN chmod +x /usr/local/bin/bitrise
RUN bitrise setup --minimal
# 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
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
# godep
RUN go get -u github.com/tools/godep
RUN godep restore
# install
RUN go install
CMD $PROJ_NAME --version