Merge pull request #425 from jzelinskie/docker-ca
dockerfile: add CA certificates
This commit is contained in:
commit
3f9ac79570
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>"
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue