mirror of
https://github.com/sot-tech/mochi.git
synced 2026-06-17 09:59:46 -07:00
Merge pull request #246 from jzelinskie/dockerfileshrink
dockerfile: delete the compiler from the container
This commit is contained in:
@@ -14,6 +14,10 @@ ADD . /go/src/github.com/chihaya/chihaya
|
||||
RUN glide install
|
||||
RUN go install github.com/chihaya/chihaya/cmd/chihaya
|
||||
|
||||
# Delete the compiler from the container.
|
||||
# This makes the container much smaller when using Quay's squashing feature.
|
||||
RUN rm -r /usr/local/go
|
||||
|
||||
# Expose a docker interface to our binary.
|
||||
EXPOSE 6880 6881
|
||||
ENTRYPOINT ["chihaya"]
|
||||
|
||||
Reference in New Issue
Block a user