-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 837 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM busybox
LABEL "maintainer"="tangfeixiong <tangfx128@gmail.com>" \
"project"="https://github.com/tangfeixiong/go-to-docker" \
"name"="msgo2docker" \
"version"="0.2"
# ca-certificates
#apk add --update ca-certificates && rm -rf /var/cache/apk/*
COPY etc/ssl/certs/ /etc/ssl/certs/
COPY bin/gotodocker /
# https://docs.docker.com/engine/reference/api/docker_remote_api/
# docker version should be at least 1.11.x. this mean that minimal docker api vesion is 1.23
#ENV DOCKER_API_VERSION='1.23' \
# DOCKER_CONFIG_JSON='{"auths": {"localhost:5000": {"auth": "","email": ""}}}' \
# REGISTRY_CERTS_JSON='{"localhost:5000": {"ca_base64": "", "crt_base64": "", "key_base64": ""}}' \
# STREAMING_HOST='FAKEHOST'
# EXPOSE 10051 10052
EXPOSE 10053
ENTRYPOINT ["/gotodocker", "serve2"]
CMD ["--logtostderr=true", "-v", "2"]