-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
37 lines (35 loc) · 1.34 KB
/
Dockerfile
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
#FROM golang:1.12
#WORKDIR /temp/repo
#RUN \
# git clone https://github.com/uber/makisu.git
#WORKDIR /workspace/github.com/uber/makisu
#RUN \
# cp /temp/repo/makisu/Makefile . &&\
# cp /temp/repo/makisu/go.mod . &&\
# cp /temp/repo/makisu/go.sum . &&\
# make vendor
#RUN \
# cp /temp/repo/makisu/.git -r . &&\
# cp /temp/repo/makisu/bin -r . &&\
# cp /temp/repo/makisu/lib -r . &&\
# make lbins
FROM gcr.io/uber-container-tools/makisu
FROM ubuntu:20.04
WORKDIR /temp
RUN apt-get update && apt-get install -y wget
RUN wget https://amazon-ecr-credential-helper-releases.s3.us-east-2.amazonaws.com/0.4.0/linux-amd64/docker-credential-ecr-login
FROM python:3.8-alpine
WORKDIR /makisu-internal
#COPY --from=0 /workspace/github.com/uber/makisu/bin/makisu/makisu.linux /makisu-internal/makisu
#COPY --from=0 /temp/repo/makisu/assets/cacerts.pem /makisu-internal/certs/cacerts.pem
COPY --from=0 /makisu-internal/makisu /makisu-internal/makisu
COPY --from=0 /makisu-internal/certs/cacerts.pem /makisu-internal/certs/cacerts.pem
COPY --from=1 /temp/docker-credential-ecr-login /bin/docker-credential-ecr-login
COPY script.py /bin/script.py
RUN \
chmod +x /makisu-internal/makisu &&\
chmod +x /bin/docker-credential-ecr-login &&\
chmod +x /bin/script.py
ENV PYTHONUNBUFFERED=1
ENV SSL_CERT_DIR /makisu-internal/certs
ENTRYPOINT /bin/script.py