File: Dockerfile

package info (click to toggle)
android-platform-tools 29.0.6-28
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 365,224 kB
  • sloc: cpp: 1,049,638; java: 460,532; ansic: 375,452; asm: 301,257; xml: 134,509; python: 92,731; perl: 62,008; sh: 26,753; makefile: 3,210; javascript: 3,172; yacc: 1,403; lex: 455; awk: 368; ruby: 183; sql: 140
file content (47 lines) | stat: -rw-r--r-- 1,608 bytes parent folder | download | duplicates (2)
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
FROM golang:1.10-alpine
ADD . /go/src/repodiff
RUN apk --no-cache add \
      curl \
      git \
      build-base \
      && curl https://raw.githubusercontent.com/golang/dep/5bdae264c61be23446d622ea84a1c97b895f78cc/install.sh | sh \
      && 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"]