mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
3118195e92
This takes the image size from 823.1MB (current edge) to 281.8MB. The following steps are taken: 0) Use go-alpine for a much smaller base image 1) Perform all actions in 1 step to eliminate diff images 2) Remove unused files created after setup
19 lines
373 B
Docker
19 lines
373 B
Docker
FROM golang:1.6-alpine
|
|
|
|
WORKDIR /go/src/app
|
|
ENV ALLOW_CONTAINER_ROOT=1
|
|
|
|
COPY . /go/src/app
|
|
RUN \
|
|
apk add --no-cache git && \
|
|
go-wrapper download && \
|
|
go-wrapper install && \
|
|
mkdir -p /export/docker && \
|
|
cp /go/src/app/docs/Docker.md /export/docker/ && \
|
|
rm -rf /go/pkg /go/src && \
|
|
apk del git
|
|
|
|
EXPOSE 9000
|
|
ENTRYPOINT ["go-wrapper", "run", "server"]
|
|
CMD ["/export"]
|