File tree 3 files changed +13
-5
lines changed
3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,10 @@ RUN make build-revad-docker && \
36
36
37
37
RUN mkdir -p /etc/revad/ && echo "" > /etc/revad/revad.toml
38
38
39
- FROM scratch
39
+ FROM golang:alpine
40
+
41
+ RUN apk --no-cache add \
42
+ mailcap
40
43
41
44
EXPOSE 9999 10000
42
45
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ ci: build-ci test lint-ci
102
102
103
103
# to be run in Docker build
104
104
build-revad-docker : off
105
- env CGO_ENABLED=0 go build -ldflags ${BUILD_FLAGS} -o ./cmd/revad/revad ./cmd/revad
105
+ go build -ldflags ${BUILD_FLAGS} -o ./cmd/revad/revad ./cmd/revad
106
106
build-reva-docker : off
107
107
env CGO_ENABLED=0 go build -ldflags ${BUILD_FLAGS} -o ./cmd/reva/reva ./cmd/reva
108
108
clean :
Original file line number Diff line number Diff line change 1
- Bugfix: Set CGO_ENABLED flag for 'scratch' based docker builds
1
+ Bugfix: 'golang: alpine ' as base image & CGO_ENABLED just for the CLI
2
+
3
+ Some of the dependencies used by revad need CGO to be enabled in order to
4
+ work. We also need to install the 'mime-types' in alpine to correctly
5
+ detect them on the storage-providers.
2
6
3
7
The CGO_ENABLED=0 flag was added to the docker build flags so that it will
4
8
produce a static build. This allows usage of the 'scratch' image for
5
- reduction of the docker image size.
9
+ reduction of the docker image size (e.g. the reva cli) .
6
10
7
11
https://github.com/cs3org/reva/issues/1765
8
- https://github.com/cs3org/reva/pull/1766
12
+ https://github.com/cs3org/reva/pull/1766
13
+ https://github.com/cs3org/reva/pull/1797
You can’t perform that action at this time.
0 commit comments