forked from GoogleCloudPlatform/docker-registry-driver-gcs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (14 loc) · 648 Bytes
/
Dockerfile
File metadata and controls
20 lines (14 loc) · 648 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM google/debian:wheezy
ADD . /docker-registry
RUN /docker-registry/build.sh
# This is the default port that docker-registry is listening on.
# Needs to be set into 5000 or the value of REGISTRY_PORT environment variable
# if the latter one is set.
EXPOSE 5000
# Credentials. Use --volumes-from gcloud-config (google/cloud-sdk).
VOLUME ["/.config"]
# These should be set if credentials are obtained with google/cloud-sdk.
ENV OAUTH2_CLIENT_ID 32555940559.apps.googleusercontent.com
ENV OAUTH2_CLIENT_SECRET ZmssLNjJy2998hD4CTg2ejr2
ENV USER_AGENT "Cloud SDK Command Line Tool"
CMD cd /docker-registry && ./setup-configs.sh && exec ./run.sh