File: Dockerfile

package info (click to toggle)
android-platform-tools 35.0.2-1~exp6
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 211,716 kB
  • sloc: cpp: 995,749; java: 290,495; ansic: 145,647; xml: 58,531; python: 39,608; sh: 14,500; javascript: 5,198; asm: 4,866; makefile: 3,115; yacc: 769; awk: 368; ruby: 183; sql: 140; perl: 88; lex: 67
file content (46 lines) | stat: -rw-r--r-- 1,490 bytes parent folder | download | duplicates (3)
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
FROM golang:1.10-alpine
ADD . /go/src/repodiff
RUN apk --no-cache add \
      curl \
      git \
      build-base \
      && curl https://storage.googleapis.com/git-repo-downloads/repo > /bin/repo \
      && chmod a+x /bin/repo \
      && cd /go/src/repodiff \
      && dep ensure \
      && go install repodiff \
      && cp config.json /go/bin/ \
      && cp .gitcookies /go/bin/ \
      && cp .gitconfig /go/bin/ \
      && cp credentials.json /go/bin/

FROM alpine:3.7
RUN apk --no-cache add \
      bash \
      git \
      python \
      && mkdir -p /app_output
COPY --from=0 /bin/repo /bin/repo
WORKDIR /app
COPY --from=0 /go/bin/repodiff .
COPY --from=0 /go/bin/config.json .
COPY --from=0 /go/bin/.git* /root/
COPY --from=0 /go/bin/credentials.json .
COPY --from=0 /go/bin/credentials.json .
COPY --from=0 /go/src/repodiff/*py ./pytools/
COPY --from=0 /go/src/repodiff/*txt ./pytools/

ENV GCP_DB_INSTANCE_CONNECTION_NAME_DEV=$GCP_DB_INSTANCE_CONNECTION_NAME_DEV
ENV GCP_DB_USER_DEV=$GCP_DB_USER_DEV
ENV GCP_DB_PASSWORD_DEV=$GCP_DB_PASSWORD_DEV
ENV GCP_DB_NAME_DEV=$GCP_DB_NAME_DEV
ENV GCP_DB_PROXY_PORT_DEV=$GCP_DB_PROXY_PORT_DEV
ENV GCP_DB_INSTANCE_CONNECTION_NAME_PROD=$GCP_DB_INSTANCE_CONNECTION_NAME_PROD
ENV GCP_DB_USER_PROD=$GCP_DB_USER_PROD
ENV GCP_DB_PASSWORD_PROD=$GCP_DB_PASSWORD_PROD
ENV GCP_DB_NAME_PROD=$GCP_DB_NAME_PROD
ENV GCP_DB_PROXY_PORT_PROD=$GCP_DB_PROXY_PORT_PROD
ENV ROLE="prod"
ENV GOOGLE_APPLICATION_CREDENTIALS="/app/credentials.json"

CMD ["./repodiff"]