dockerfile: add CA certificates

This commit is contained in:
Jimmy Zelinskie 2018-09-24 14:04:12 -04:00
parent 7c5f8bf9c5
commit bb56c2932b

View file

@ -2,8 +2,7 @@ FROM golang:alpine AS build-env
LABEL maintainer "Jimmy Zelinskie <jimmyzelinskie+git@gmail.com>"
# Install OS-level dependencies.
RUN apk update && \
apk add curl git
RUN apk add --no-cache curl git
# Copy our source code into the container.
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/...
FROM alpine:latest
RUN apk add --no-cache ca-certificates
COPY --from=build-env /go/bin/chihaya /chihaya
RUN adduser -D chihaya