GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — zero/Dockerfile at v0.2.0 · commitdev/zero

Expand file tree

/

Dockerfile

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
48 lines (34 loc) · 1.42 KB
/

Dockerfile

Copy path

File metadata and controls

48 lines (34 loc) · 1.42 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM golang:1.12.12-alpine3.10 as builder
ENV GO111MODULE=on
ENV TERRAFORM_VERSION=0.12.13
RUN apk add --update --no-cache build-base curl git upx && \
rm -rf /var/cache/apk/*
RUN apk add --update nodejs npm
RUN curl -sSL \
https://amazon-eks.s3-us-west-2.amazonaws.com/1.14.6/2019-08-22/bin/linux/amd64/aws-iam-authenticator \
-o /usr/local/bin/aws-iam-authenticator
RUN GO111MODULE=off go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
RUN curl -sSLo /tmp/terraform.zip "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" && \
unzip -d /usr/local/bin/ /tmp/terraform.zip
RUN chmod +x /usr/local/bin/* && \
upx --lzma /usr/local/bin/*
# Hydrate the dependency cache. This way, if the go.mod or go.sum files do not
# change we can cache the depdency layer without having to reinstall them.
WORKDIR /tmp/zero
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN make build && \
mv zero /usr/local/bin && \
upx --lzma /usr/local/bin/zero
FROM alpine:3.10
ENV \
PROTOBUF_VERSION=3.6.1-r1 \
GOPATH=/proto-libs
RUN apk add --update bash ca-certificates git python && \
apk add --update -t deps make py-pip
RUN mkdir ${GOPATH}
COPY --from=builder /usr/local/bin /usr/local/bin
COPY --from=builder /go/src/github.com/grpc-ecosystem/grpc-gateway ${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway
WORKDIR /project
ENTRYPOINT ["/usr/local/bin/zero"]
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.