Merge pull request #425 from jzelinskie/docker-ca

dockerfile: add CA certificates
This commit is contained in:
Jimmy Zelinskie 2018-09-24 18:58:44 -04:00 committed by GitHub
commit 3f9ac79570
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,8 +2,7 @@ FROM golang:alpine AS build-env
LABEL maintainer "Jimmy Zelinskie <jimmyzelinskie+git@gmail.com>" LABEL maintainer "Jimmy Zelinskie <jimmyzelinskie+git@gmail.com>"
# Install OS-level dependencies. # Install OS-level dependencies.
RUN apk update && \ RUN apk add --no-cache curl git
apk add curl git
# Copy our source code into the container. # Copy our source code into the container.
WORKDIR /go/src/github.com/chihaya/chihaya WORKDIR /go/src/github.com/chihaya/chihaya
@ -15,6 +14,7 @@ RUN dep ensure
RUN CGO_ENABLED=0 go install github.com/chihaya/chihaya/cmd/... RUN CGO_ENABLED=0 go install github.com/chihaya/chihaya/cmd/...
FROM alpine:latest FROM alpine:latest
RUN apk add --no-cache ca-certificates
COPY --from=build-env /go/bin/chihaya /chihaya COPY --from=build-env /go/bin/chihaya /chihaya
RUN adduser -D chihaya RUN adduser -D chihaya