dockerfile: add CA certificates
This commit is contained in:
parent
7c5f8bf9c5
commit
bb56c2932b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue