forked from evalvarez12/cc-user-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 719 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 719 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
FROM ubuntu:14.04
RUN apt-get update && \
apt-get install -y curl && \
apt-get install -y cmake && \
apt-get install -y git && \
rm -rf /var/lib/apt/lists/*
#Get go1.6
RUN curl https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz | tar -xvzf - -C /usr/local
#gopath
RUN mkdir go
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN go get github.com/revel/cmd/revel
RUN go get bitbucket.org/liamstask/goose/cmd/goose
RUN go get github.com/aws/aws-sdk-go
RUN mkdir -p /go/src/github.com/arbolista-dev/cc-user-api
COPY . /go/src/github.com/arbolista-dev/cc-user-api
COPY docker-entrypoint.sh /
RUN chmod u+x docker-entrypoint.sh
ENTRYPOINT ./docker-entrypoint.sh $CC_ENV