add ca-certificates to scratch docker image (#478)
parent
6bbedddf51
commit
4e454f4bd2
|
@ -3,7 +3,7 @@ FROM golang:alpine
|
||||||
COPY . /go/src/github.com/filebrowser/filebrowser
|
COPY . /go/src/github.com/filebrowser/filebrowser
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/filebrowser/filebrowser
|
WORKDIR /go/src/github.com/filebrowser/filebrowser
|
||||||
RUN apk add --no-cache git curl && \
|
RUN apk --no-cache --update upgrade && apk --no-cache add ca-certificates git curl && \
|
||||||
curl -fsSL -o /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 && \
|
curl -fsSL -o /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 && \
|
||||||
chmod +x /usr/local/bin/dep
|
chmod +x /usr/local/bin/dep
|
||||||
RUN dep ensure -vendor-only
|
RUN dep ensure -vendor-only
|
||||||
|
@ -14,6 +14,7 @@ RUN mv filebrowser /go/bin/filebrowser
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=0 /go/bin/filebrowser /filebrowser
|
COPY --from=0 /go/bin/filebrowser /filebrowser
|
||||||
|
COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
VOLUME /tmp
|
VOLUME /tmp
|
||||||
VOLUME /srv
|
VOLUME /srv
|
||||||
|
|
Loading…
Reference in New Issue