-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathDockerfile.goreleaser
More file actions
16 lines (16 loc) · 949 Bytes
/
Dockerfile.goreleaser
File metadata and controls
16 lines (16 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ARG alpine_version=3.16
FROM alpine:${alpine_version}
COPY ./deploy-agent /usr/local/bin/deploy-agent
ARG docker_credential_gcr_version=2.1.6
ARG grpc_health_probe_version=0.4.14
RUN set -ex \
&& apk add --no-cache --update curl tar \
&& curl -fsSL "https://github.com/GoogleCloudPlatform/docker-credential-gcr/releases/download/v${docker_credential_gcr_version}/docker-credential-gcr_linux_amd64-${docker_credential_gcr_version}.tar.gz" \
| tar -xzf- docker-credential-gcr \
&& mv docker-credential-gcr /usr/local/bin/ \
&& docker-credential-gcr version \
&& docker-credential-gcr configure-docker --include-artifact-registry \
&& curl -fsSL -o /usr/local/bin/grpc_health_probe "https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v${grpc_health_probe_version}/grpc_health_probe-linux-amd64" \
&& chmod +x /usr/local/bin/grpc_health_probe
EXPOSE 8080
ENTRYPOINT ["/usr/local/bin/deploy-agent"]