Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faster docker build for amp image #334

Merged
merged 1 commit into from
Oct 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
*.pb.go
vendor
.glide
Dockerfile
Dockerfile.*
docker-compose.*.yml
Expand Down
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# appclerator/protoc is based on alpine and includes latest go and protoc
FROM appcelerator/protoc
RUN echo "@community http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk --no-cache add make bash git curl docker@community
RUN curl https://glide.sh/get | sh
RUN apk --no-cache add make bash git docker@community
WORKDIR /go/src/github.com/appcelerator/amp
COPY glide.lock /go/src/github.com/appcelerator/amp/
COPY glide.yaml /go/src/github.com/appcelerator/amp/
RUN glide install
COPY . /go/src/github.com/appcelerator/amp
RUN make install-host
EXPOSE 50101
Expand Down